@@ -10,16 +10,34 @@ jobs:
10
10
tests :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
-
14
- - uses : cachix/install-nix-action@v16
15
- with :
16
- install_url : https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.8.0pre20220311_d532269/install
17
- extra_nix_config : |
18
- experimental-features = nix-command flakes
19
- allow-import-from-derivation = true
13
+ - name : checkout repo
14
+ uses : actions/checkout@v3
15
+
16
+ - name : install nix
17
+ uses : cachix/install-nix-action@v20
20
18
21
- - name : Run Nix Flake Check
22
- run : nix -Lv flake check
19
+ - name : configure cache
20
+ uses : DeterminateSystems/magic-nix-cache-action@v1
21
+
22
+ - name : check flake
23
+ run : nix -Lv flake check
24
+
25
+ - name : check nix parsing
26
+ run : nix -Lv develop -c evalnix
23
27
24
- - name : Check Nix parsing
25
- run : nix -Lv develop -c evalnix
28
+ - name : get latest tag
29
+ id : latest
30
+ uses : actions-ecosystem/action-get-latest-tag@v1
31
+
32
+ - name : parse changelog
33
+ id : changelog
34
+ uses : coditory/changelog-parser@v1
35
+
36
+ - name : create release
37
+ id : release
38
+ uses : softprops/action-gh-release@v1
39
+ if : github.ref == 'refs/heads/main' && steps.changelog.outputs.version != steps.latest.outputs.tag
40
+ with :
41
+ files : ${{ steps.package.outputs.path }}
42
+ body : ${{ steps.changelog.outputs.description }}
43
+ tag_name : ${{ steps.changelog.outputs.version }}
0 commit comments