From fbb66fb1b1f44f7929e630cb412ceb8a56d6ffd7 Mon Sep 17 00:00:00 2001 From: Alexandre Teoi Date: Mon, 12 Feb 2024 22:36:36 -0300 Subject: [PATCH] chore: update GitHub actions --- .github/workflows/release.yml | 14 +++++++------- .github/workflows/reusable-package.yml | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 789606a..a7b0018 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,19 +9,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: 'true' - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Create release run: | cd LuaJIT || exit 1 - git checkout v2.1 - COMMIT_TIME=$(git show -s --format=%ct) - DAYS=$((COMMIT_TIME / 60 / 60 / 24)) - TAG="v2.1.${DAYS}" + VERSION="2.1" + git checkout v${VERSION} + COMMIT_TIME_SECONDS=$(git show -s --format=%ct) + COMMIT_TIME_DAYS=$((COMMIT_TIME / 60 / 60 / 24)) cd .. || exit 2 - gh release create "${TAG}" --notes "LuaJIT ${TAG}" ./build/*.msi ./build/*.zip + gh release create "v${VERSION}.${COMMIT_TIME_DAYS}" --notes "LuaJIT ${VERSION}.${COMMIT_TIME_SECONDS}" ./build/*.msi ./build/*.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/reusable-package.yml b/.github/workflows/reusable-package.yml index 0306411..3ba2f8e 100644 --- a/.github/workflows/reusable-package.yml +++ b/.github/workflows/reusable-package.yml @@ -6,14 +6,14 @@ jobs: runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: 'true' - name: Package shell: pwsh run: ./Build-LuaJIT.ps1 - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build path: |