release #204
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
release: | |
types: [published] | |
env: | |
APP_NAME: memories | |
jobs: | |
publish: | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Set up php | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
extensions: mbstring, iconv, fileinfo, intl, mysql, pdo_mysql | |
coverage: none | |
- name: Build | |
run: | | |
make dev-setup | |
make patch-external | |
make build-js-production | |
- name: Bundle app | |
run: bash scripts/bundle.sh | |
env: | |
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: Upload app tarball to release | |
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 | |
- 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 }} |