Skip to content

Commit

Permalink
build: wip - release for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickDinh committed Mar 26, 2024
1 parent aaade03 commit c9bd814
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/actions/publish-linux-snap/action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Build for Linux'
name: 'Publish Linux Snap'
inputs:
release-version:
description: 'The release version'
Expand Down Expand Up @@ -32,14 +32,14 @@ runs:
with:
snapcraft-args: --target-arch amd64

#TODO: in this action, we only publish the snap as an artifact for testing purposes
- name: Upload binary as artifact
id: upload-artifact
uses: actions/upload-artifact@v3
- name: Append the snap file to release
uses: softprops/action-gh-release@v1
with:
name: algokit-explorer-linux-snap
path: |
fail_on_unmatched_files: true
files: |
*.snap
tag_name: ${{ inputs.release-version }}
prerelease: ${{ contains(inputs.release-version, 'beta') }}

# once we have the release token, we will publish the snap to Snap Store
# - name: Set path to snap binary
Expand Down
17 changes: 17 additions & 0 deletions .github/actions/publish-windows-winget/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Publish Windows Winget'
inputs:
release-version:
description: 'The release version'
required: true

runs:
using: 'composite'
steps:
- name: Append the msi file to release
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: |
algokit-explorer_*.msi
tag_name: ${{ inputs.release-version }}
prerelease: ${{ contains(inputs.release-version, 'beta') }}
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,8 @@ jobs:
with:
release-version: ${{ needs.create-release.outputs.release-version }}
artifact-name: ${{ needs.build-tauri.outputs.linux-artifact-name }}

- name: Publish Windows Winget
uses: ./.github/actions/publish-windows-winget
with:
release-version: ${{ needs.create-release.outputs.release-version }}

0 comments on commit c9bd814

Please sign in to comment.