chore(tooling): update workflow
This commit is contained in:
parent
060942051f
commit
425cc54356
1 changed files with 5 additions and 35 deletions
|
@ -1,4 +1,6 @@
|
||||||
---
|
---
|
||||||
|
name: 'main'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -17,7 +19,7 @@ jobs:
|
||||||
- name: 'check'
|
- name: 'check'
|
||||||
run: |
|
run: |
|
||||||
make check no-dirty
|
make check no-dirty
|
||||||
build:
|
main:
|
||||||
if: "${{ startsWith(github.ref, 'refs/tags/') }}"
|
if: "${{ startsWith(github.ref, 'refs/tags/') }}"
|
||||||
needs:
|
needs:
|
||||||
- 'test'
|
- 'test'
|
||||||
|
@ -34,40 +36,8 @@ jobs:
|
||||||
make build
|
make build
|
||||||
env:
|
env:
|
||||||
GIT_CRYPT_SECRET: '${{ secrets.GIT_CRYPT }}'
|
GIT_CRYPT_SECRET: '${{ secrets.GIT_CRYPT }}'
|
||||||
#- uses: 'actions/upload-artifact@v4'
|
- name: 'deploy'
|
||||||
- uses: 'forgejo/upload-artifact@v4'
|
run: |
|
||||||
with:
|
|
||||||
if-no-files-found: 'error'
|
|
||||||
name: 'ods'
|
|
||||||
path: 'ods'
|
|
||||||
deploy:
|
|
||||||
needs:
|
|
||||||
- 'build'
|
|
||||||
runs-on: 'self-hosted'
|
|
||||||
steps:
|
|
||||||
#- uses: 'actions/download-artifact@v4'
|
|
||||||
- uses: 'forgejo/download-artifact@v4'
|
|
||||||
with:
|
|
||||||
name: 'ods'
|
|
||||||
- run: |
|
|
||||||
make deploy
|
make deploy
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: '${{ secrets.SSH_PRIVATE_KEY }}'
|
SSH_PRIVATE_KEY: '${{ secrets.SSH_PRIVATE_KEY }}'
|
||||||
publish:
|
|
||||||
needs:
|
|
||||||
- 'build'
|
|
||||||
runs-on: 'self-hosted'
|
|
||||||
steps:
|
|
||||||
#- uses: 'actions/download-artifact@v4'
|
|
||||||
- uses: 'forgejo/download-artifact@v4'
|
|
||||||
with:
|
|
||||||
name: 'ods'
|
|
||||||
- uses: 'actions/forgejo-release@v2'
|
|
||||||
with:
|
|
||||||
direction: 'upload'
|
|
||||||
tag: '${{ github.ref_name }}'
|
|
||||||
sha: '${{ github.sha }}'
|
|
||||||
release-dir: './'
|
|
||||||
token: '${{ env.GITHUB_TOKEN }}'
|
|
||||||
hide-archive-link: true
|
|
||||||
prerelease: true
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue