-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic-release.yml
More file actions
43 lines (36 loc) · 1.08 KB
/
basic-release.yml
File metadata and controls
43 lines (36 loc) · 1.08 KB
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
43
# Single-platform Linux release with archive and checksums
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- uses: michaelklishin/rust-build-package-release-action@v1
id: validate
with:
command: validate-version
- uses: michaelklishin/rust-build-package-release-action@v1
with:
command: extract-changelog
version: ${{ steps.validate.outputs.version }}
- uses: michaelklishin/rust-build-package-release-action@v1
id: build
with:
command: release-linux
target: x86_64-unknown-linux-gnu
archive: 'true'
locked: 'true'
- uses: softprops/action-gh-release@v2
with:
body_path: release_notes.md
files: |
${{ steps.build.outputs.artifact_path }}
${{ steps.build.outputs.artifact_path }}.sha256