Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
dartcafe 2024-08-01 17:51:50 +02:00
Родитель 954878306d
Коммит a76cf59f26
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: CCE73CEF3035D3C8
1 изменённых файлов: 64 добавлений и 0 удалений

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

@ -0,0 +1,64 @@
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Publish pre-release
on:
push:
tags:
- v*-alpha*
jobs:
checkout:
runs-on: ubuntu-latest
name: Alpha release
steps:
- uses: actions/checkout@v4
- 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 ${{ steps.appinfo.outputs.app-version }}
if: success()
run: make package
- name: rename packages to polls-${{ steps.appinfo.outputs.app-version }}
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: Extract release notes
if: success()
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: Publish pre-release ${{ steps.appinfo.outputs.app-version }}
if: success()
uses: softprops/action-gh-release@v1
with:
body: "# Changelog for the upcomming release (preview)\n ${{ steps.extract-release-notes.outputs.release_notes }} "
prerelease: true
draft: false
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