Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c838ebf698 | |||
| 132748ff5e |
@@ -11,7 +11,6 @@ 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
|
||||||
@@ -24,12 +23,7 @@ jobs:
|
|||||||
- 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: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: serve
|
name: serve
|
||||||
path: ./bin/serve
|
path: ./bin/serve
|
||||||
on-failure:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
|
||||||
steps:
|
|
||||||
- run: echo 'Cannot release with failing tests'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user