Skip to content

Commit

Permalink
try to fix release artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Aug 7, 2024
1 parent f052d97 commit 7ae65b0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:
- name: Build executable
run: python src/setup.py build

- name: Zip BigPictureTV folder
- name: Zip binaries folder
run: |
$zipFile = "build/BigPictureTV.zip"
$folder = "build/BigPictureTV"
$zipFile = "build/${{ github.event.repository.name }}.zip"
$folder = "build/${{ github.event.repository.name }}"
Compress-Archive -Path $folder -DestinationPath $zipFile
shell: pwsh

- name: Upload BigPictureTV zip
- name: Upload artifact zip
uses: actions/upload-artifact@v4
with:
name: BigPictureTV
path: build/BigPictureTV.zip
name: ${{ github.event.repository.name }}
path: build/${{ github.event.repository.name }}.zip

release:
runs-on: ubuntu-latest
Expand All @@ -44,10 +44,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download BigPictureTV zip
- name: Download artifact zip
uses: actions/download-artifact@v4
with:
name: BigPictureTV
name: ${{ github.event.repository.name }}

- name: Bump version and create release
id: bump_release
Expand Down Expand Up @@ -90,8 +90,8 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: BigPictureTV.zip
asset_name: BigPictureTV.zip
asset_path: ${{ github.event.repository.name }}.zip
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 11 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Release
name: Build

on:
push:
Expand Down Expand Up @@ -26,8 +26,15 @@ jobs:
- name: Build executable
run: python src/setup.py build

- name: Upload project artifact
- name: Zip binaries folder
run: |
$zipFile = "build/${{ github.event.repository.name }}.zip"
$folder = "build/${{ github.event.repository.name }}"
Compress-Archive -Path $folder -DestinationPath $zipFile
shell: pwsh

- name: Upload artifact zip
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}_win64
path: build/${{ github.event.repository.name }}
name: ${{ github.event.repository.name }}
path: build/${{ github.event.repository.name }}.zip

0 comments on commit 7ae65b0

Please sign in to comment.