forked from FooSoft/mangle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: BUILD try a first version of CI/CD building
- Loading branch information
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,9 @@ jobs: | |
build: | ||
runs-on: windows-latest | ||
|
||
env: | ||
VERSION: 0.2 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -33,28 +36,27 @@ jobs: | |
- name: Compress dist directory | ||
run: | | ||
powershell Compress-Archive -Path dist\henskan -DestinationPath henskan.zip | ||
powershell Compress-Archive -Path dist\henskan -DestinationPath henskan-portable-v${{ env.VERSION }}.zip | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: henskan.zip | ||
path: henskan.zip | ||
name: henskan-portable-v${{ env.VERSION }}.zip | ||
path: henskan-portable-v${{ env.VERSION }}.zip | ||
|
||
- name: Create Tag | ||
id: create_tag | ||
run: | | ||
git tag -f v0.2 | ||
git push origin v0.2 || true | ||
git tag -f v${{ env.VERSION }} | ||
git push origin v${{ env.VERSION }} || true | ||
- name: Create Release | ||
id: create_release | ||
uses: softprops/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v0.2 | ||
#release_name: Release v0.2 | ||
tag_name: v${{ env.VERSION }} | ||
draft: true | ||
prerelease: true | ||
|
||
|
@@ -63,5 +65,5 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: henskan.zip | ||
tag_name: v0.2 | ||
files: henskan-portable-v${{ env.VERSION }}.zip | ||
tag_name: v${{ env.VERSION }} |