11name : Tag Release
22
3- on :
3+ on :
44 push :
55 tags :
6- - ' v*'
6+ - ' v*'
77
88jobs :
99 build_linux :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v2
12+ - uses : actions/checkout@v6
1313 - name : autogen
1414 run : ./autogen.sh
1515 - name : configure
1616 run : ./configure
1717 - name : make
18- run : QSTAT_VERSION=${{ github.event.release.tag_name }} make
19- - uses : actions/upload-artifact@v2
18+ run : QSTAT_VERSION=${{ github.ref_name }} make
19+ - uses : actions/upload-artifact@v6
2020 with :
2121 name : linux_amd64
2222 path : qstat
2323
2424 build_macos :
2525 runs-on : macos-latest
2626 steps :
27- - uses : actions/checkout@v2
27+ - uses : actions/checkout@v6
2828 - name : install automake
2929 run : brew install automake
3030 - name : autogen
3131 run : ./autogen.sh
3232 - name : configure
3333 run : ./configure
3434 - name : make
35- run : QSTAT_VERSION=${{ github.event.release.tag_name }} make
36- - uses : actions/upload-artifact@v2
35+ run : QSTAT_VERSION=${{ github.ref_name }} make
36+ - uses : actions/upload-artifact@v6
3737 with :
3838 name : darwin_amd64
3939 path : qstat
@@ -42,14 +42,14 @@ jobs:
4242 build_windows :
4343 runs-on : windows-latest
4444 env :
45- QSTAT_VERSION : ${{ github.event.release.tag_name }}
45+ QSTAT_VERSION : ${{ github.ref_name }}
4646 steps :
47- - uses : actions/checkout@v2
47+ - uses : actions/checkout@v6
4848 - uses : ilammy/msvc-dev-cmd@v1
4949 - name : nmake
5050 run : |
5151 nmake -f Makefile.noauto windows windows_debug
52- - uses : actions/upload-artifact@v2
52+ - uses : actions/upload-artifact@v6
5353 with :
5454 name : windows_amd64
5555 path : qstat.exe
@@ -62,18 +62,18 @@ jobs:
6262 - build_linux
6363 - build_macos
6464 steps :
65- - uses : actions/checkout@v2
66- - uses : actions/download-artifact@v2
65+ - uses : actions/checkout@v6
66+ - uses : actions/download-artifact@v7
6767 with :
6868 path : bin
6969 - name : zip
7070 run : zip -r release.zip bin/* qstat.cfg contrib.cfg LICENSE.*
7171 - name : Release
72- uses : " softprops/action-gh-release@v1 "
72+ uses : softprops/action-gh-release@v2
7373 env :
7474 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7575 with :
7676 prerelease : false
77- tag_name : " ${{ github.event.release.tag_name }}"
77+ tag_name : " ${{ github.ref_name }}"
7878 files : |
7979 release.zip
0 commit comments