From 482c89aba38c08cf67c3b5d08f663060c8fb95be Mon Sep 17 00:00:00 2001 From: DR Date: Sat, 27 Apr 2024 08:00:46 -0400 Subject: [PATCH] fix: add auto publish windows --- .github/workflows/release.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04c4c3a..c4c0c32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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