chore(ci): add temporary build action #17
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
# https://github.com/sveltejs/kit/blob/32afba695088b946aefe96da75b36de9b0667fbe/.github/workflows/release.yml | |
name: 'Release' | |
on: | |
push: | |
branches: ['main'] | |
permissions: {} | |
jobs: | |
changesets: | |
# prevents this action from running on forks | |
if: github.repository == 'secretflow/secretnote' | |
name: Changesets | |
uses: secretflow/web-ci/.github/workflows/release-changesets.yml@main | |
permissions: | |
contents: write # to create release (changesets/action) | |
pull-requests: write # to create pull request (changesets/action) | |
secrets: inherit | |
ci: | |
needs: [changesets] | |
if: | | |
needs.changesets.outputs.should-release == 'true' | |
name: Prerelease CI | |
uses: ./.github/workflows/ci.yml | |
permissions: | |
contents: read | |
actions: read | |
publish: | |
needs: [ci] | |
if: | | |
needs.ci.result == 'success' | |
name: Publish | |
uses: secretflow/web-ci/.github/workflows/release-publish.yml@main | |
permissions: | |
contents: write # to create tags | |
secrets: inherit |