-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New release process (part 7) (#2998)
<!-- Open the PR up as a draft until you feel it is ready for a proper review. Do not make PR:s from your own `main` branch, as that makes it difficult for reviewers to add their own fixes. Add any improvements to the branch as new commits to make it easier for reviewers to follow the progress. All commits will be squashed to a single commit once the PR is merged into `main`. Make sure you mention any issues that this PR closes in the description, as well as any other related issues. To get an auto-generated PR description you can put "copilot:summary" or "copilot:walkthrough" anywhere. --> ### What - Fixes everything after the `version` step of the prerelease workflow not being executed on top of the version bump commit. - Adds some documentation for the `deploy-vercel` action. ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/{{ pr.number }}) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/{{ pr.number }}) - [Docs preview](https://rerun.io/preview/{{ "pr:%s"|format(pr.branch)|encode_uri_component }}/docs) - [Examples preview](https://rerun.io/preview/{{ "pr:%s"|format(pr.branch)|encode_uri_component }}/examples)
- Loading branch information
Showing
12 changed files
with
122 additions
and
16 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
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
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 |
---|---|---|
|
@@ -40,6 +40,7 @@ jobs: | |
previous: ${{ steps.versioning.outputs.previous }} | ||
current: ${{ steps.versioning.outputs.current }} | ||
final: ${{ steps.versioning.outputs.final }} | ||
release-commit: ${{ steps.create-pull-request.outputs.pull-request-head-sha }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
|
@@ -87,6 +88,7 @@ jobs: | |
echo "final=$final" >> "$GITHUB_OUTPUT" | ||
- name: Create pull request | ||
id: create-pull-request | ||
uses: peter-evans/[email protected] | ||
if: steps.versioning.outputs.previous != steps.versioning.outputs.current | ||
with: | ||
|
@@ -159,7 +161,7 @@ jobs: | |
PY_DOCS_VERSION_NAME: ${{ inputs.release-type == 'prerelease' && 'prerelease' || needs.version.outputs.final }} | ||
RS_DOCS_VERSION_NAME: ${{ inputs.release-type == 'prerelease' && 'prerelease' || 'head' }} | ||
UPDATE_LATEST: ${{ inputs.release-type == 'release' }} | ||
RELEASE_COMMIT: ${{ github.sha }} | ||
RELEASE_COMMIT: ${{ needs.version.outputs.release-commit }} | ||
secrets: inherit | ||
|
||
publish-crates: | ||
|
@@ -168,6 +170,7 @@ jobs: | |
uses: ./.github/workflows/reusable_release_crates.yml | ||
with: | ||
CONCURRENCY: ${{ github.ref_name }} | ||
RELEASE_COMMIT: ${{ needs.version.outputs.release-commit }} | ||
secrets: inherit | ||
|
||
build-and-publish-wheels: | ||
|
@@ -179,6 +182,7 @@ jobs: | |
concurrency: ${{ github.ref_name }} | ||
linux-wheel-name: linux-wheel | ||
linux-rrd-name: linux-rrd | ||
release-commit: ${{ needs.version.outputs.release-commit }} | ||
secrets: inherit | ||
|
||
build-and-publish-web: | ||
|
@@ -187,6 +191,7 @@ jobs: | |
uses: ./.github/workflows/reusable_build_and_publish_web.yml | ||
with: | ||
release-version: ${{ needs.version.outputs.current }} | ||
release-commit: ${{ needs.version.outputs.release-commit }} | ||
concurrency: ${{ github.ref_name }} | ||
wheel-artifact-name: linux-wheel | ||
rrd-artifact-name: linux-rrd | ||
|
@@ -201,21 +206,26 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ needs.version.outputs.release-commit }} | ||
|
||
- name: Update latest branch | ||
run: | | ||
git fetch | ||
git checkout ${{ github.ref_name }} | ||
git push --force origin ${{ github.ref_name }}:latest | ||
git commit -m "Update docs for ${GITHUB_SHA}" | ||
git push origin gh-pages-orphan:gh-pages -f | ||
post-release-version-bump: | ||
name: "Post-release Version Bump" | ||
if: inputs.release-type == 'release' | ||
needs: [version, update-docs, publish-crates, build-and-publish-wheels, build-and-publish-web] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
|
||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install -r scripts/ci/requirements.txt | ||
|
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
Oops, something went wrong.