Skip to content

Commit bc703f8

Browse files
authored
feat: v2.1.1707061634 (#21)
1 parent 28c1ad0 commit bc703f8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ jobs:
1616
uses: actions/download-artifact@v3
1717
- name: Create release
1818
run: |
19-
cd LuaJIT
19+
cd LuaJIT || exit 1
2020
git checkout v2.1
2121
COMMIT_TIME=$(git show -s --format=%ct)
22-
TAG="v2.1.${COMMIT_TIME}"
23-
cd .. || exit 1
22+
DAYS=$((COMMIT_TIME / 60 / 60 / 24))
23+
TAG="v2.1.${DAYS}"
24+
cd .. || exit 2
2425
gh release create "${TAG}" --notes "LuaJIT ${TAG}" ./build/*.msi ./build/*.zip
2526
env:
2627
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)