forked from rrweb-io/rrweb
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
publish(ci): Add "Prepare Release" GHA and Artifacts upload (#23)
Prepare our CI for publishing our packages by * adding the "Prepare Release" Github Action (analogously to sentry-javascript or sentry-bundler-plugins) * uploading build artifacts to GH which craft pulls when publishing
- Loading branch information
Showing
2 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Prepare Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: Version to release | ||
required: true | ||
force: | ||
description: Force a release even when there are release-blockers (optional) | ||
required: false | ||
merge_target: | ||
description: Target branch to merge into. Uses the default branch, sentry-v1, as a fallback (optional) | ||
required: false | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: 'Release a new version' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GH_RELEASE_PAT }} | ||
fetch-depth: 0 | ||
- name: Prepare release | ||
uses: getsentry/action-prepare-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }} | ||
with: | ||
version: ${{ github.event.inputs.version }} | ||
force: ${{ github.event.inputs.force }} | ||
merge_target: ${{ github.event.inputs.merge_target }} |