-
Notifications
You must be signed in to change notification settings - Fork 23
feat: release automation #635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,79 @@ | ||
| name: Release-plz | ||
|
|
||
| permissions: | ||
| pull-requests: write | ||
| issues: write # needed for labels | ||
| contents: write | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [ closed ] | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| # Release unpublished packages. | ||
| release-plz-release: | ||
| name: Release-plz release | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| # This environment gives access to CARGO_REGISTRY_TOKEN, and requires approval | ||
| environment: release | ||
| # only trigger this job if the push to main is from a merged PR with a "release" label | ||
| if: > | ||
| github.repository_owner == 'tkhq' && | ||
| github.event.pull_request.merged == true && | ||
| contains(github.event.pull_request.labels.*.name, 'release') | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - name: git checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| # `fetch-depth: 0` is needed to clone all the git history, which is necessary to | ||
| # release from the latest commit of the release PR. | ||
| fetch-depth: 0 | ||
| - name: install Rust | ||
| uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 #v1 | ||
| with: | ||
| toolchain: stable | ||
| components: clippy,rustfmt | ||
| - name: Run release-plz | ||
| uses: release-plz/action@f708778669256143d984cce4b23592637532e040 # v0.5.127 | ||
| with: | ||
| command: release | ||
| manifest_path: src/Cargo.toml | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
|
|
||
| # Create a PR with the new versions and changelog, preparing the next release. | ||
| release-plz-pr: | ||
| name: Release-plz PR | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| if: ${{ github.repository_owner == 'tkhq' }} | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| concurrency: | ||
| group: release-plz-${{ github.ref }} | ||
| cancel-in-progress: false | ||
| steps: | ||
| - name: git checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| # `fetch-depth: 0` is needed to clone all the git history, which is necessary to | ||
| # determine the next version and build the changelog. | ||
| fetch-depth: 0 | ||
| - name: install Rust | ||
| uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 #v1 | ||
| with: | ||
| toolchain: stable | ||
| components: clippy,rustfmt | ||
| - name: Run release-plz | ||
| uses: release-plz/action@f708778669256143d984cce4b23592637532e040 # v0.5.127 | ||
| with: | ||
| command: release-pr | ||
| manifest_path: src/Cargo.toml | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,81 @@ | ||
| [workspace] | ||
| pr_labels = ["release"] | ||
| # See https://release-plz.dev/docs/config#the-release_always-field | ||
| release_always = false | ||
| changelog_path = "../CHANGELOG.md" | ||
|
|
||
| # See https://release-plz.dev/docs/extra/single-changelog#all-packages | ||
| [changelog] | ||
| body = """ | ||
|
|
||
| ## `{{ package }}` - [{{ version }}]{%- if release_link -%}({{ release_link }}){% endif %} - {{ timestamp | date(format="%Y-%m-%d") }} | ||
| {% for group, commits in commits | group_by(attribute="group") %} | ||
| ### {{ group | upper_first }} | ||
| {% for commit in commits %} | ||
| {%- if commit.scope -%} | ||
| - *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{%- if commit.links %} ({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%}){% endif %} | ||
| {% else -%} | ||
| - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }} | ||
emostov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {% endif -%} | ||
| {% endfor -%} | ||
| {% endfor -%} | ||
| """ | ||
|
|
||
| [[package]] | ||
| name = "qos_client" | ||
| changelog_update = true | ||
| publish = true | ||
| version_group = "qos" | ||
|
|
||
| [[package]] | ||
| name = "qos_core" | ||
| changelog_update = true | ||
| publish = true | ||
| version_group = "qos" | ||
|
|
||
| [[package]] | ||
| name = "qos_crypto" | ||
| changelog_update = true | ||
| publish = true | ||
| version_group = "qos" | ||
|
|
||
| [[package]] | ||
| name = "qos_hex" | ||
| changelog_update = true | ||
| publish = true | ||
| version_group = "qos" | ||
|
|
||
| [[package]] | ||
| name = "qos_net" | ||
| changelog_update = true | ||
| publish = true | ||
| version_group = "qos" | ||
|
|
||
| [[package]] | ||
| name = "qos_p256" | ||
| changelog_update = true | ||
| publish = true | ||
| version_group = "qos" | ||
|
|
||
| [[package]] | ||
| name = "qos_nsm" | ||
| changelog_update = true | ||
| publish = true | ||
| version_group = "qos" | ||
|
|
||
| # Unpublished packages | ||
|
|
||
| [[package]] | ||
| name = "integration" | ||
| publish = false | ||
| changelog_update = false | ||
|
|
||
| [[package]] | ||
| name = "qos_test_primitives" | ||
| publish = false | ||
| changelog_update = false | ||
|
|
||
| [[package]] | ||
| name = "qos_host" | ||
| changelog_update = false | ||
| publish = false | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.