2022-09-13 22:39:09 +00:00
|
|
|
name: Release
|
2022-09-13 22:27:41 +00:00
|
|
|
|
|
|
|
on:
|
2022-09-13 22:39:09 +00:00
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
env:
|
|
|
|
APP_NAME: memories
|
2022-09-13 22:27:41 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-09-13 22:39:09 +00:00
|
|
|
publish:
|
2022-09-13 22:27:41 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
steps:
|
2022-09-13 22:39:09 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2022-09-13 22:27:41 +00:00
|
|
|
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make dev-setup
|
|
|
|
make build-js-production
|
|
|
|
./bundle.sh
|
|
|
|
|
2022-09-13 22:39:09 +00:00
|
|
|
- name: Upload app tarball to release
|
2022-09-13 22:41:55 +00:00
|
|
|
uses: svenstaro/upload-release-action@v2
|
|
|
|
id: attach_to_release
|
|
|
|
with:
|
|
|
|
file: memories.tar.gz
|
|
|
|
asset_name: memories.tar.gz
|
|
|
|
tag: ${{ github.ref }}
|
|
|
|
overwrite: true
|
2022-09-13 22:39:09 +00:00
|
|
|
|
|
|
|
- name: Upload app to Nextcloud appstore
|
2022-09-13 22:41:55 +00:00
|
|
|
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 }}
|