File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
pull_request :
6
6
7
+ permissions :
8
+ # To create a new release
9
+ contents : write
10
+
7
11
jobs :
8
- nix :
12
+ build :
9
13
strategy :
10
14
fail-fast : false
11
15
matrix :
33
37
- name : " Upload stand-alone binary"
34
38
uses : actions/upload-artifact@v4
35
39
with :
36
- name : git-hly-${{ matrix.os.name }}-${{ github.sha }}
40
+ name : git-hly-${{ matrix.os.name }}
37
41
path : result/bin/git-hly
38
42
43
+ release :
44
+ if : " github.ref == 'refs/heads/master'"
45
+ needs :
46
+ - build
47
+ runs-on : ubuntu-latest
48
+ steps :
49
+ - uses : actions/download-artifact@v4
50
+ - run : |
51
+ for f in *; do
52
+ (
53
+ cd $f
54
+ chmod +x *
55
+ tar cjvf $f.tar.bz2 *
56
+ mv *.bz2 ..
57
+ )
58
+ done
59
+ - uses : marvinpinto/action-automatic-releases@latest
60
+ with :
61
+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
62
+ automatic_release_tag : latest
63
+ prerelease : true
64
+ files : " git-hly*bz2"
65
+
39
66
nocommit :
40
67
runs-on : ubuntu-latest
41
68
steps :
You can’t perform that action at this time.
0 commit comments