Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions .github/workflows/release.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,46 @@ jobs:
with:
name: build-dir
path: build/

release:
needs:
- tests
- build-devcontainer
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@master
with:
name: build-dir
path: build/

- name: write version to output
id: write-version-to-output
run: |
RELEASE_VERSION=${GITHUB_REF#refs/tags/}
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_OUTPUT

- name: Github Release
uses: softprops/action-gh-release@v2
with:
files: build/artifacts/*

- name: Attach tarball to github release
uses: svenstaro/upload-release-action@v2
id: attach_to_release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./build/artifacts/gdatavaas.tar.gz
asset_name: gdatavaas.tar.gz
tag: ${{ github.ref }}
overwrite: true

- name: Upload app to Nextcloud appstore
uses: nextcloud-releases/nextcloud-appstore-push-action@v1
with:
app_name: gdatavaas
appstore_token: ${{ secrets.VAAS_APPSTORE_TOKEN }}
download_url: ${{ steps.attach_to_release.outputs.browser_download_url }}
app_private_key: ${{ secrets.VAAS_NEXTCLOUD_KEY }}