Skip to content

Commit

Permalink
Fix: BUILD try a first version of CI/CD building
Browse files Browse the repository at this point in the history
  • Loading branch information
naparuba committed Aug 22, 2024
1 parent 83714fc commit 603c592
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
build:
runs-on: windows-latest

env:
VERSION: 0.2

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -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

Expand All @@ -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 }}

0 comments on commit 603c592

Please sign in to comment.