Skip to content

Commit

Permalink
Merge pull request #33 from noir-neo/release-assets
Browse files Browse the repository at this point in the history
Release assets
  • Loading branch information
noir-neo authored Mar 14, 2024
2 parents 3b5edea + b474822 commit 67ef340
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build mac
on:
push:
branches: master
release:
types: [created]
workflow_dispatch: {}

jobs:
Expand Down Expand Up @@ -56,3 +58,13 @@ jobs:
name: hatbor-macOS-${{ steps.buildStep.outputs.buildVersion }}
path: hatbor.dmg

- name: Upload Release Asset
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./hatbor.dmg
asset_name: hatbor-macOS-${{ steps.buildStep.outputs.buildVersion }}.zip
asset_content_type: application/octet-stream
16 changes: 16 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build Windows
on:
push:
branches: master
release:
types: [created]
workflow_dispatch: {}

jobs:
Expand Down Expand Up @@ -37,3 +39,17 @@ jobs:
name: hatbor-Windows-${{ steps.buildStep.outputs.buildVersion }}
path: build/StandaloneWindows64

- name: Archive artifacts
if: github.event_name == 'release'
run: zip -r artifact.zip build/StandaloneWindows64

- name: Upload Release Asset
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./artifact.zip
asset_name: hatbor-Windows-${{ steps.buildStep.outputs.buildVersion }}.zip
asset_content_type: application/zip

0 comments on commit 67ef340

Please sign in to comment.