File tree Expand file tree Collapse file tree 2 files changed +43
-50
lines changed
Expand file tree Collapse file tree 2 files changed +43
-50
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -102,3 +102,46 @@ jobs:
102102 with :
103103 name : build-dir
104104 path : build/
105+
106+ release :
107+ needs :
108+ - tests
109+ - build-devcontainer
110+ runs-on : ubuntu-latest
111+ if : startsWith(github.ref, 'refs/tags/')
112+ steps :
113+ - uses : actions/checkout@v4
114+
115+ - uses : actions/download-artifact@master
116+ with :
117+ name : build-dir
118+ path : build/
119+
120+ - name : write version to output
121+ id : write-version-to-output
122+ run : |
123+ RELEASE_VERSION=${GITHUB_REF#refs/tags/}
124+ echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_OUTPUT
125+
126+ - name : Github Release
127+ uses : softprops/action-gh-release@v2
128+ with :
129+ files : build/artifacts/*
130+
131+ - name : Attach tarball to github release
132+ uses : svenstaro/upload-release-action@v2
133+ id : attach_to_release
134+ with :
135+ repo_token : ${{ secrets.GITHUB_TOKEN }}
136+ file : ./build/artifacts/gdatavaas.tar.gz
137+ asset_name : gdatavaas.tar.gz
138+ tag : ${{ github.ref }}
139+ overwrite : true
140+
141+ - name : Upload app to Nextcloud appstore
142+ uses : nextcloud-releases/nextcloud-appstore-push-action@v1
143+ with :
144+ app_name : gdatavaas
145+ appstore_token : ${{ secrets.VAAS_APPSTORE_TOKEN }}
146+ download_url : ${{ steps.attach_to_release.outputs.browser_download_url }}
147+ app_private_key : ${{ secrets.VAAS_NEXTCLOUD_KEY }}
You can’t perform that action at this time.
0 commit comments