Skip to content

Commit

Permalink
Merge pull request #293 from nextcloud/feat/workflow-auto-update-apps…
Browse files Browse the repository at this point in the history
…tore-build-publish.yml

Updating appstore-build-publish.yml workflow from template
  • Loading branch information
juliusknorr authored Apr 8, 2022
2 parents e589b6d + 3f49f19 commit b22fb3e
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/appstore-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,29 @@ jobs:
npm ci
npm run build
- name: Check Krankerl config
id: krankerl
uses: andstor/file-existence-action@v1
with:
files: ${{ env.APP_NAME }}/krankerl.toml

- name: Install Krankerl
if: steps.krankerl.outputs.files_exists == 'true'
run: |
wget https://github.com/ChristophWurst/krankerl/releases/download/v0.13.0/krankerl_0.13.0_amd64.deb
sudo dpkg -i krankerl_0.13.0_amd64.deb
- name: Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }}
# Try krankerl, fallback to makefile
- name: Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }} with krankerl
if: steps.krankerl.outputs.files_exists == 'true'
run: |
cd ${{ env.APP_NAME }}
krankerl package
- name: Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }} with makefile
if: steps.krankerl.outputs.files_exists != 'true'
run: |
cd ${{ env.APP_NAME }}
krankerl package || make appstore
make appstore
- name: Checkout server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
continue-on-error: true
Expand Down

0 comments on commit b22fb3e

Please sign in to comment.