-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (37 loc) · 1.03 KB
/
Copy pathrelease.yml
File metadata and controls
48 lines (37 loc) · 1.03 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
44
45
46
47
48
name: release
on:
workflow_dispatch:
permissions:
actions: read
contents: write
jobs:
create_release:
name: Create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Check for successful CI run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 scripts/release.py check-ci ${{ github.sha }}
- name: Install cargo-about
run: cargo install --locked cargo-about
- name: Lint release
run: python3 scripts/release.py lint
- name: Create draft release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 scripts/release.py create
macos_binary:
name: Build and upload macOS binary
runs-on: macos-latest
needs: create_release
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install x86_64 target
run: rustup target add x86_64-apple-darwin
- run: scripts/upload_macos.sh