Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c838ebf698 | |||
| 132748ff5e |
@@ -11,7 +11,6 @@ jobs:
|
||||
name: Release go project
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -24,12 +23,7 @@ jobs:
|
||||
- name: Build
|
||||
run: go build -ldflags "-s -w" -o ./bin/serve main.go
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: 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