-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (39 loc) · 1.12 KB
/
github_release.yml
File metadata and controls
47 lines (39 loc) · 1.12 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
name: GitHub Release
on:
push:
branches:
- 'main'
defaults:
run:
shell: bash
jobs:
create-github-release:
name: Create GitHub Release
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Required for `get-git-tag`.
fetch-depth: 0
- name: Generate GitHub App Token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.NILLION_GITHUB_ACTIONS_APP_ID }}
owner: NillionNetwork
private-key: ${{ secrets.NILLION_GITHUB_ACTIONS_APP_PRIVATE_KEY }}
repositories: nilvm
- name: Install just
run: |
sudo apt update
sudo apt install just
- name: Install uv
run: ./scripts/install/uv.sh
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
LATEST_MAIN_TAG=$(just get-git-tag main)
echo "LATEST_MAIN_TAG: $LATEST_MAIN_TAG" >&2
just create-github-release "$LATEST_MAIN_TAG" "$LATEST_MAIN_TAG"