45c3c8211e
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
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
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: ${{ env.APP_NAME }}
|
|
- 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
|
|
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 }}
|
|
file: ${{ env.APP_NAME }}/build/artifacts/${{ 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.0.3
|
|
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: false
|