ci: sign windows #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update release PR or publish GitHub release | |
on: | |
push: | |
branches: | |
- master | |
concurrency: commits-to-master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
with: | |
node_version: 20.10.0 | |
- name: Install root for @changesets/cli | |
shell: bash | |
run: npm install --workspaces=false | |
- name: Update release pull request or publish | |
id: changesets | |
uses: changesets/action@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
commit: 'chore: release packages' | |
publish: npm run release | |
- name: Publish electron apps | |
# if a release was published, publish the electron apps | |
if: steps.changesets.outputs.published == 'true' | |
uses: peter-evans/repository-dispatch@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
repository: siafoundation/desktop | |
event-type: publish |