Skip to content

Commit

Permalink
test release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
neCo2 committed May 22, 2024
1 parent 844550e commit 6560024
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/compile_mikupad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main


- name: Set up Node.js
uses: actions/setup-node@v4
Expand All @@ -23,9 +27,15 @@ jobs:
- name: run compile.sh
run: chmod +x compile.sh; ./compile.sh

- name: Get Commit Count
id: commit_count
run: echo "count=$(git rev-list --count HEAD)" >> $GITHUB_OUTPUT
- name: Determine Tag Name
id: Tag_Name
run: |
BUILD_NUMBER="$(git rev-list --count HEAD)"
echo "number=b${BUILD_NUMBER}" >> $GITHUB_OUTPUT
SHORT_HASH="$(git rev-parse --short=7 HEAD)"
echo "buildName=miku${BUILD_NUMBER} ${SHORT_HASH}" >> $GITHUB_OUTPUT
echo BUILD_NUMBER
echo SHORT_HASH
- name: Get Last Release Tag
id: last_release
Expand All @@ -46,8 +56,8 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.commit_count.outputs.count }}
name: Miku${{ steps.commit_count.outputs.count }}
tag_name: ${{ steps.Tag_Name.outputs.number }}
name: Miku${{ steps.Tag_Name.outputs.buildName }}
body_path: CHANGELOG.txt
files: mikupad_compiled.html
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 6560024

Please sign in to comment.