1 parent b30a0e8 commit a2e225aCopy full SHA for a2e225a
1 file changed
.github/workflows/release.yml
@@ -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
27
+ files: result/thinkcentre_mount.stl
28
+ generate_release_notes: true
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
0 commit comments