diff --git a/.github/workflows/build-daily.yml b/.github/workflows/build-daily.yml index e04af2127..444d10f0f 100644 --- a/.github/workflows/build-daily.yml +++ b/.github/workflows/build-daily.yml @@ -1,5 +1,7 @@ name: build-daily on: push +# schedule: +# - cron: '0 0 * * *' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -9,6 +11,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Update continuous tag + run: | + git config --global user.email "qsaker@foxmail.com" + git config --global user.name "Qsaker" + git tag -fa continuous -m "chore: update to latest commit" + git push origin :refs/tags/continuous + git push origin continuous -f - name: Delete Release run: | gh release delete continuous -y || true @@ -37,10 +46,7 @@ jobs: call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/6.5.3/win64_msvc2019_64/lib/cmake/Qt6' -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ../ cmake --build . --target QtSwissArmyKnife - dir - dir .\sak - dir .\sak\QtSwissArmyKnife + dir && dir .\sak && dir .\sak\QtSwissArmyKnife - name: Upload Release Asset for Windnows run: | - dir - gh release upload continuous 'build\sak\qtswissarmyknife-windows-amd64.zip' \ No newline at end of file + dir && gh release upload continuous 'build\sak\qtswissarmyknife-windows-amd64.zip' \ No newline at end of file