File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - name : Checkout
12- uses : actions/checkout@v3
12+ uses : actions/checkout@v4
1313 with :
1414 submodules : ' true'
1515 - name : Download artifacts
16- uses : actions/download-artifact@v3
16+ uses : actions/download-artifact@v4
1717 - name : Create release
1818 run : |
1919 cd LuaJIT || exit 1
20- git checkout v2.1
21- COMMIT_TIME=$( git show -s --format=%ct)
22- DAYS =$((COMMIT_TIME / 60 / 60 / 24) )
23- TAG="v2.1.${DAYS}"
20+ VERSION="2.1"
21+ git checkout "v${VERSION}"
22+ COMMIT_TIME_SECONDS =$(git show -s --format=%ct )
23+ COMMIT_TIME_DAYS=$((COMMIT_TIME_SECONDS / 60 / 60 / 24))
2424 cd .. || exit 2
25- gh release create "${TAG} " --notes "LuaJIT ${TAG }" ./build/*.msi ./build/*.zip
25+ gh release create "v${VERSION}.${COMMIT_TIME_DAYS} " --notes "LuaJIT ${VERSION}.${COMMIT_TIME_SECONDS }" ./build/*.msi ./build/*.zip
2626 env :
2727 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 66 runs-on : windows-latest
77 steps :
88 - name : Checkout
9- uses : actions/checkout@v3
9+ uses : actions/checkout@v4
1010 with :
1111 submodules : ' true'
1212 - name : Package
1313 shell : pwsh
1414 run : ./Build-LuaJIT.ps1
1515 - name : Upload artifacts
16- uses : actions/upload-artifact@v3
16+ uses : actions/upload-artifact@v4
1717 with :
1818 name : build
1919 path : |
You can’t perform that action at this time.
0 commit comments