File tree Expand file tree Collapse file tree 2 files changed +42
-8
lines changed Expand file tree Collapse file tree 2 files changed +42
-8
lines changed Original file line number Diff line number Diff line change @@ -14,28 +14,28 @@ runs:
1414
1515 - name : Upload DEB artifact
1616 if : runner.os == 'Linux'
17- uses : actions/upload-artifact@v3
17+ uses : actions/upload-artifact@v4
1818 with :
19- name : linux-deb.zip
19+ name : sigutils- linux-deb.zip
2020 path : build/dist/*.deb
2121
2222 - name : Upload TGZ artifact
2323 if : runner.os == 'Linux'
24- uses : actions/upload-artifact@v3
24+ uses : actions/upload-artifact@v4
2525 with :
26- name : linux-tgz.zip
26+ name : sigutils- linux-tgz.zip
2727 path : build/dist/*.tar.gz
2828
2929 - name : Upload TGZ artifact
3030 if : runner.os == 'MacOS'
31- uses : actions/upload-artifact@v3
31+ uses : actions/upload-artifact@v4
3232 with :
33- name : macos-tgz.zip
33+ name : sigutils- macos-tgz.zip
3434 path : build/dist/*.tar.gz
3535
3636 - name : Upload ZIP artifact
3737 if : runner.os == 'Windows'
38- uses : actions/upload-artifact@v3
38+ uses : actions/upload-artifact@v4
3939 with :
40- name : windows-zip.zip
40+ name : sigutils- windows-zip.zip
4141 path : build/dist/*.zip
Original file line number Diff line number Diff line change @@ -104,3 +104,37 @@ jobs:
104104 uses : " ./.github/actions/package"
105105 with :
106106 generators : ZIP
107+
108+ release :
109+ runs-on : " ubuntu-latest"
110+ needs :
111+ - build-linux
112+ - build-macos
113+ - build-windows
114+
115+ steps :
116+ - name : Get current date
117+ id : date
118+ run : echo "::set-output name=date::$(date +'%Y-%m-%d')"
119+
120+ - name : Download binaries
121+ uses : actions/download-artifact@v4
122+
123+ - name : Release nightly
124+ if : github.ref == 'refs/heads/master'
125+ uses : marvinpinto/action-automatic-releases@v1.2.1
126+ with :
127+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
128+ automatic_release_tag : " latest"
129+ prerelease : true
130+ title : " Sigutils nightly (${{steps.date.outputs.date}})"
131+ files : sigutils*/*
132+
133+ - name : Release stable
134+ if : contains(github.ref, 'refs/tags/v')
135+ uses : marvinpinto/action-automatic-releases@v1.2.1
136+ with :
137+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
138+ prerelease : false
139+ title : " Sigutils ${{github.ref_name}}"
140+ files : sigutils*/*
You can’t perform that action at this time.
0 commit comments