-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 887 Bytes
/
release.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
name: Publish
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build-cli:
uses: ./.github/workflows/build_cli_artifacts.yml
release:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: [build-cli]
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: bin
- name: Generate Checksum
run: |
ARTIFACTS="bin"
find "$ARTIFACTS" -type f -exec sha256sum '{}' + | sed 's, .*/, ,' > SHA256SUMS.txt
- name: Create pre-release
uses: softprops/action-gh-release@v1
with:
files: |
bin/*/xmodits-*
SHA256SUMS.txt
draft: true
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}