Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
dartcafe 2022-09-17 23:08:22 +02:00
Родитель 1e89c1b5c1
Коммит 7269b213da
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: CCE73CEF3035D3C8
1 изменённых файлов: 57 добавлений и 0 удалений

57
.github/workflows/publish_release.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,57 @@
name: Draft Release
on:
push:
tags:
- v*
- '!v*-'
jobs:
checkout:
runs-on: ubuntu-latest
name: Release
steps:
- uses: actions/checkout@v2
- name: Check correct app version
id: appinfo
uses: ./.github/actions/get-polls-version
- name: Setup node
if: success()
uses: ./.github/actions/setup-node
- name: Setup composer and PHP
if: success()
uses: ./.github/actions/setup-composer
with:
mode: production
php-tools: composer
- name: build
run: npm run build --if-present
- name: Make appstore package
if: success()
run: make package
- name: rename package
if: success()
run: mv build/artifacts/appstore/polls.tar.gz build/artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.tar.gz
- name: create zip archive from sources
if: success()
run: |
pushd build/source
zip -r ../artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.zip *
popd
- name: Draft Release
if: success()
uses: softprops/action-gh-release@v1
with:
prerelease: false
draft: true
generate_release_notes: true
files: |
build/artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.tar.gz
build/artifacts/appstore/polls-${{ steps.appinfo.outputs.app-version }}.zip