diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2020-10-15 19:20:39 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-10-21 16:51:18 +0200 |
commit | db581671828c55a701dec394025f15a12712f463 (patch) | |
tree | f16a4b0359f6b5c2d96abe4a9ab974d0b53b0b60 /.github | |
parent | 176f5b8d63886b1e097f4728e7dcbbac23f6170e (diff) |
add new actions job, build and punlish release
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-release.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 000000000..8a53be633 --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,39 @@ +name: Build and publish app release + +on: + release: + types: [published] + +env: + APP_NAME: news + +jobs: + build_and_publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + path: ${{ env.APP_NAME }} + - name: Run build + run: cd ${{ env.APP_NAME }} && make appstore + env: + app_private_key: ${{ secrets.APP_PRIVATE_KEY }} + app_public_cert: ${{ secrets.APP_PUBLIC_CERT }} + - name: Upload app tarball to release + uses: svenstaro/upload-release-action@v2 + id: attach_to_release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ env.APP_NAME }}/build/artifacts/appstore/${{ env.APP_NAME }}.tar.gz + asset_name: ${{ env.APP_NAME }}.tar.gz + tag: ${{ github.ref }} + overwrite: true +# - name: Upload app to Nextcloud appstore +# uses: R0Wi/nextcloud-appstore-push-action@v1 +# with: +# app_name: ${{ env.APP_NAME }} +# appstore_token: ${{ secrets.APPSTORE_TOKEN }} +# download_url: ${{ steps.attach_to_release.outputs.browser_download_url }} +# app_private_key: ${{ secrets.APP_PRIVATE_KEY }} +# nightly: ${{ github.event.release.prerelease }}
\ No newline at end of file |