-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (50 loc) · 1.41 KB
/
release.yaml
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
49
50
51
52
53
54
55
56
57
58
59
name: release
on:
workflow_dispatch:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: linux-arm64
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build Linux ARM64
run: |
mkdir -p artifacts
nix build .#cursor.linux.arm64-targz
cp result/* artifacts/
nix build .#cursor.linux.arm64-appimage
cp result/* artifacts/
- name: Build Linux ARM32
run: |
nix build .#cursor.linux.arm32-targz
cp result/* artifacts/
nix build .#cursor.linux.arm32-appimage
cp result/* artifacts/
- name: Build Windows ARM64
run: |
nix build .#cursor.windows.arm64-zip
cp result/* artifacts/
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
body: |
See [the official changelog](https://changelog.cursor.sh/).
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
files: ./artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}