forked from Lucretius/vault_raft_snapshot_agent
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (35 loc) · 961 Bytes
/
release-binaries.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release Binaries
on:
workflow_dispatch:
workflow_call:
concurrency:
group: release-binaries-${{ github.ref }}
cancel-in-progress: true
jobs:
compile-binaries:
if: startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/compile.yml
secrets: inherit
release-binaries:
runs-on: ubuntu-latest
needs:
- compile-binaries
steps:
- name: Download binaries from earlier jobs
uses: actions/download-artifact@v4
with:
pattern: binary-*
path: dist/
merge-multiple: true
- name: Upload binaries to release
uses: "ncipollo/release-action@v1"
with:
token: "${{ secrets.GITHUB_TOKEN }}"
tag: ${{ github.ref.name }}
allowUpdates: true
artifactErrorsFailBuild: true
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
replacesArtifacts: true
artifacts: dist/*