Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b33ae50397 | |||
| c838ebf698 | |||
| 132748ff5e |
@@ -11,10 +11,11 @@ jobs:
|
|||||||
name: Release go project
|
name: Release go project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Setup Go installation
|
- name: Setup Go installation
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
@@ -23,13 +24,8 @@ jobs:
|
|||||||
run: go get .
|
run: go get .
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -ldflags "-s -w" -o ./bin/serve main.go
|
run: go build -ldflags "-s -w" -o ./bin/serve main.go
|
||||||
- name: Upload artifacts
|
- name: Release build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: https://gitea.com/actions/release-action@main
|
||||||
with:
|
with:
|
||||||
name: serve
|
files: ./bin/serve
|
||||||
path: ./bin/serve
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
on-failure:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
|
||||||
steps:
|
|
||||||
- run: echo 'Cannot release with failing tests'
|
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Setup Go installation
|
- name: Setup Go installation
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user