2021-08-14 17:57:50 +00:00
|
|
|
name: Build and publish app release
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
env:
|
|
|
|
APP_NAME: gpoddersync
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_publish:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-02-27 11:47:06 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-08-14 17:57:50 +00:00
|
|
|
with:
|
|
|
|
path: ${{ env.APP_NAME }}
|
2022-07-17 18:14:36 +00:00
|
|
|
- name: Install NPM packages
|
|
|
|
run: cd ${{ env.APP_NAME }} && make npm-init
|
|
|
|
- name: Build JS
|
|
|
|
run: cd ${{ env.APP_NAME }} && make build-js-production
|
|
|
|
- name: Create release tarball
|
2021-08-14 17:57:50 +00:00
|
|
|
run: cd ${{ env.APP_NAME }} && make appstore
|
|
|
|
- name: Upload app tarball to release
|
|
|
|
uses: svenstaro/upload-release-action@v2
|
|
|
|
id: attach_to_release
|
|
|
|
with:
|
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
2021-08-14 18:11:59 +00:00
|
|
|
file: ${{ env.APP_NAME }}/build/artifacts/${{ env.APP_NAME }}.tar.gz
|
2021-08-14 17:57:50 +00:00
|
|
|
asset_name: ${{ env.APP_NAME }}.tar.gz
|
|
|
|
tag: ${{ github.ref }}
|
|
|
|
overwrite: true
|
|
|
|
- name: Upload app to Nextcloud appstore
|
2021-08-14 18:24:27 +00:00
|
|
|
uses: R0Wi/nextcloud-appstore-push-action@v1.0.3
|
2021-08-16 20:37:31 +00:00
|
|
|
with:
|
2021-08-14 17:57:50 +00:00
|
|
|
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 }}
|
2021-08-14 18:20:16 +00:00
|
|
|
nightly: false
|