mirror of
https://github.com/anejolov/WinDeckHelper.git
synced 2026-06-13 04:05:06 +03:00
Update main.yml
This commit is contained in:
committed by
GitHub
parent
ee424dfa68
commit
1c17d4cd86
@@ -60,6 +60,13 @@ jobs:
|
||||
name: WindeckHelper
|
||||
path: ${{ steps.create_archive.outputs.archiveName }}
|
||||
|
||||
- name: Upload artifact for release
|
||||
if: github.event_name == 'workflow_dispatch' || github.event_name == 'release'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: WindeckHelper
|
||||
path: ${{ steps.create_archive.outputs.archiveName }}
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
@@ -69,6 +76,12 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: WindeckHelper
|
||||
path: .
|
||||
|
||||
- name: Get release version
|
||||
id: get_version
|
||||
run: |
|
||||
@@ -84,8 +97,9 @@ jobs:
|
||||
echo "::set-output name=version::$VERSION"
|
||||
|
||||
- name: Rename archive to include version
|
||||
id: rename_archive
|
||||
run: |
|
||||
baseName="${{ needs.build.outputs.archiveName }}"
|
||||
baseName="${{ env.BASE_FILE_NAME }}"
|
||||
version="${{ steps.get_version.outputs.version }}"
|
||||
newName="${baseName%.exe}-${version}.exe"
|
||||
mv "$baseName" "$newName"
|
||||
|
||||
Reference in New Issue
Block a user