diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e52c8353..3068c93a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: NodeJS with Webpack +name: Build Vue app on: push: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8217fb61..29badc60 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,17 +1,20 @@ -name: Releases +name: Release on: - push: - tags: - - '*' + release: + types: [published] + +env: + APP_NAME: memories jobs: - release: + publish: runs-on: ubuntu-latest permissions: contents: write steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - name: Use Node.js uses: actions/setup-node@v3 @@ -24,6 +27,20 @@ jobs: make build-js-production ./bundle.sh - - uses: ncipollo/release-action@v1 - with: - artifacts: "memories.tar.gz" \ No newline at end of file + - 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 }} \ No newline at end of file diff --git a/appinfo/info.xml b/appinfo/info.xml index 0ab89e65..a8111d61 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -32,7 +32,7 @@ The exact steps depend on your Nextcloud platform. If you use Docker for your Ne - **MacOS**: `brew install exiftool` - **FreeBSD**: `sudo pkg install p5-Image-ExifTool` ]]> - 1.1.1 + 1.1.1-b agpl Varun Patil https://github.com/pulsejet/memories