Skip to content

Commit

Permalink
Try to fix CI warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Noxalus committed Jun 22, 2024
1 parent 0a6cc2a commit 14435da
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
with:
lfs: 'true'

- name: Get the version
uses: kzrnm/get-net-sdk-project-versions-action@v2
- name: Get the project's version
uses: kzrnm/get-net-sdk-project-versions-action@v2.0.0
id: get-version
with:
proj-path: KHFM-VF-Patch/KHFM-VF-Patch.csproj
Expand All @@ -32,30 +32,14 @@ jobs:
shell: cmd
run: call .\CI\CreateArtifact.cmd

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: KHFM-VF-Patch
path: .\KHFM-VF-Patch\bin\x86\Release\net8.0-windows7.0
- name: Rename Artifact with project version
shell: cmd
run: mv ./KHFM-VF-Patch/KHFM-VF-Patch.zip ./KHFM-VF-Patch/KHFM-VF-Patch-${{ steps.get-version.outputs.version }}.zip

- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.get-version.outputs.version }}
release_name: v${{ steps.get-version.outputs.version }}
files: ./KHFM-VF-Patch/KHFM-VF-Patch-${{ steps.get-version.outputs.version }}.zip
draft: true
prerelease: true

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./KHFM-VF-Patch/KHFM-VF-Patch.zip
asset_name: KHFM-VF-Patch-${{ steps.get-version.outputs.version }}.zip
asset_content_type: application/zip

0 comments on commit 14435da

Please sign in to comment.