Skip to content

Commit

Permalink
Attempt GH action fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Drise13 authored Jul 1, 2024
1 parent ff7f133 commit 19af4ee
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ jobs:
run: dotnet publish --configuration Release --output ./publish --no-build

- name: Archive Artifacts
run: zip -r PetsOptimizer.zip ./publish

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: publish
path: ./publish
path: PetsOptimizer.zip

create_release:
runs-on: ubuntu-latest
Expand All @@ -46,6 +49,9 @@ jobs:
with:
name: publish

- name: Unzip Artifacts
run: unzip PetsOptimizer.zip

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -63,9 +69,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./publish
asset_path: ./PetsOptimizer.zip
asset_name: PetsOptimizer.zip # Adjust as needed
asset_content_type: application/zip

- name: Compress Artifacts
run: zip -r PetsOptimizer.zip ./publish

0 comments on commit 19af4ee

Please sign in to comment.