Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary artifact download step and fix asset path in uploa…
Browse files Browse the repository at this point in the history
…d-release-asset step
  • Loading branch information
0xGuigui committed Mar 12, 2024
1 parent a6fe167 commit cfcf2d9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/python-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Download artifact
uses: actions/download-artifact@v2
with:
name: SweePy.exe
path: dist/

- name: Create release
uses: actions/create-release@v1
env:
Expand All @@ -66,14 +60,19 @@ jobs:
First pre-release of SweePy
draft: false
prerelease: true
id: create_release

- name: Get artifact
uses: actions/download-artifact@v2
with:
name: SweePy.exe
path: dist/

- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/SweePy.exe
asset_path: dist/SweePy.exe
asset_name: SweePy.exe
asset_content_type: application/octet-stream
asset_content_type: application/octet-stream

0 comments on commit cfcf2d9

Please sign in to comment.