Skip to content

Commit a2e225a

Browse files
committed
chore: Github Release workflow.
Signed-off-by: Vincent Palmer <shift@someone.section.me>
1 parent b30a0e8 commit a2e225a

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release STL
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build-and-release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Install Nix
17+
uses: cachix/install-nix-action@v22
18+
with:
19+
nix_path: nixpkgs=channel:nixos-unstable
20+
21+
- name: Build STL
22+
run: nix build
23+
24+
- name: Create Release
25+
uses: softprops/action-gh-release@v1
26+
with:
27+
files: result/thinkcentre_mount.stl
28+
generate_release_notes: true
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

0 commit comments

Comments
 (0)