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