chore(tooling): update workflow
This commit is contained in:
parent
060942051f
commit
024a946f7c
1 changed files with 7 additions and 14 deletions
|
@ -1,10 +1,12 @@
|
|||
---
|
||||
name: 'main'
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
main:
|
||||
runs-on: 'self-hosted'
|
||||
steps:
|
||||
- uses: 'actions/checkout@v4'
|
||||
|
@ -17,16 +19,6 @@ jobs:
|
|||
- name: 'check'
|
||||
run: |
|
||||
make check no-dirty
|
||||
build:
|
||||
if: "${{ startsWith(github.ref, 'refs/tags/') }}"
|
||||
needs:
|
||||
- 'test'
|
||||
runs-on: 'self-hosted'
|
||||
steps:
|
||||
- uses: 'actions/checkout@v4'
|
||||
- uses: 'actions/setup-go@v5'
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
- name: 'build'
|
||||
run: |
|
||||
printf '%s' "$GIT_CRYPT_SECRET" | base64 -d > secret
|
||||
|
@ -36,13 +28,14 @@ jobs:
|
|||
GIT_CRYPT_SECRET: '${{ secrets.GIT_CRYPT }}'
|
||||
#- uses: 'actions/upload-artifact@v4'
|
||||
- uses: 'forgejo/upload-artifact@v4'
|
||||
if: "${{ startsWith(github.ref, 'refs/tags/') }}"
|
||||
with:
|
||||
if-no-files-found: 'error'
|
||||
name: 'ods'
|
||||
path: 'ods'
|
||||
deploy:
|
||||
needs:
|
||||
- 'build'
|
||||
- 'main'
|
||||
runs-on: 'self-hosted'
|
||||
steps:
|
||||
#- uses: 'actions/download-artifact@v4'
|
||||
|
@ -55,7 +48,7 @@ jobs:
|
|||
SSH_PRIVATE_KEY: '${{ secrets.SSH_PRIVATE_KEY }}'
|
||||
publish:
|
||||
needs:
|
||||
- 'build'
|
||||
- 'main'
|
||||
runs-on: 'self-hosted'
|
||||
steps:
|
||||
#- uses: 'actions/download-artifact@v4'
|
||||
|
@ -70,4 +63,4 @@ jobs:
|
|||
release-dir: './'
|
||||
token: '${{ env.GITHUB_TOKEN }}'
|
||||
hide-archive-link: true
|
||||
prerelease: true
|
||||
prerelease: false
|
||||
|
|
Loading…
Add table
Reference in a new issue