Skip to content

Commit

Permalink
Automate store push
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Sep 13, 2022
1 parent 1a7241f commit f894d69
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NodeJS with Webpack
name: Build Vue app

on:
push:
Expand Down
35 changes: 26 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -24,6 +27,20 @@ jobs:
make build-js-production
./bundle.sh
- uses: ncipollo/release-action@v1
with:
artifacts: "memories.tar.gz"
- 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 }}
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
]]></description>
<version>1.1.1</version>
<version>1.1.1-b</version>
<licence>agpl</licence>
<author mail="[email protected]" >Varun Patil</author>
<website>https://github.com/pulsejet/memories</website>
Expand Down

0 comments on commit f894d69

Please sign in to comment.