Skip to content

Commit

Permalink
fix: add auto publish windows
Browse files Browse the repository at this point in the history
  • Loading branch information
daretodave committed Apr 27, 2024
1 parent 0ce33a5 commit 482c89a
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: node

okay-release-windows:
if: needs.release-please.outputs.release_created
runs-on: windows-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: build
uses: borales/actions-yarn@v4
with:
cmd: build:win
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
run: gh release upload ${{ needs.release-please.outputs.tag_name }} ./dist/${{ needs.release-please.outputs.major}}-${{ needs.release-please.outputs.minor}}-${{ needs.release-please.outputs.patch}}-beta-setup.exe

0 comments on commit 482c89a

Please sign in to comment.