File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release App
2+
3+ on :
4+ push :
5+ tags : ["*"]
6+
7+ jobs :
8+ release :
9+ runs-on : ubuntu-latest
10+ if : startsWith(github.ref, 'refs/tags/')
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - uses : actions/download-artifact@master
15+ with :
16+ name : build-dir
17+ path : build/
18+
19+ - name : write version to output
20+ id : write-version-to-output
21+ run : |
22+ RELEASE_VERSION=${GITHUB_REF#refs/tags/}
23+ echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_OUTPUT
24+
25+ - name : Github Release
26+ uses : softprops/action-gh-release@v2
27+ with :
28+ files : build/artifacts/*
29+
30+ - name : Attach tarball to github release
31+ uses : svenstaro/upload-release-action@v2
32+ id : attach_to_release
33+ with :
34+ repo_token : ${{ secrets.GITHUB_TOKEN }}
35+ file : ./build/artifacts/gdatavaas.tar.gz
36+ asset_name : gdatavaas.tar.gz
37+ tag : ${{ github.ref }}
38+ overwrite : true
39+
40+ - name : Upload app to Nextcloud appstore
41+ uses : nextcloud-releases/nextcloud-appstore-push-action@v1
42+ with :
43+ app_name : gdatavaas
44+ appstore_token : ${{ secrets.VAAS_APPSTORE_TOKEN }}
45+ download_url : ${{ steps.attach_to_release.outputs.browser_download_url }}
46+ app_private_key : ${{ secrets.VAAS_NEXTCLOUD_KEY }}
You can’t perform that action at this time.
0 commit comments