Skip to content

Commit

Permalink
Merge pull request #1 from chadek/ci
Browse files Browse the repository at this point in the history
adding CI
  • Loading branch information
chadek authored Feb 5, 2024
2 parents 7f7b205 + a86ac0b commit 5b8c992
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and publish app release

on:
release:
types: [published]

env:
APP_NAME: documentserver_community

jobs:
build_and_publish:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: ${{ env.APP_NAME }}

- name: Run build
run: cd ${{ env.APP_NAME }} && make
# run: cd ${{ env.APP_NAME }} && make appstore

- name: Upload app tarball to release
uses: svenstaro/upload-release-action@v2
id: attach_to_release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.APP_NAME }}/build/artifacts/appstore/${{ env.APP_NAME }}.tar.gz
asset_name: ${{ env.APP_NAME }}.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 }}

0 comments on commit 5b8c992

Please sign in to comment.