Skip to content

Commit

Permalink
chore: update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ateoi committed Feb 13, 2024
1 parent bc703f8 commit fbb66fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 2 additions & 2 deletions .github/workflows/reusable-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit fbb66fb

Please sign in to comment.