-
Notifications
You must be signed in to change notification settings - Fork 0
Add release-plz workflow for publishing pinget-core to crates.io #13
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
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0759408
Add release-plz workflow and config for publishing pinget-core to cra…
Copilot b7bf770
Apply suggestion from @CBenoit
CBenoit 5ea64d1
Remove release_commits filter to allow any commit to trigger release PR
Copilot a0e07cd
Add master branch as trigger for release-crates workflow
Copilot 12376b8
Add README.md to pinget-core for crates.io
Copilot 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: Release crates | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
|
|
||
| jobs: | ||
| # Create a PR with the new versions and changelog, preparing the next release. | ||
| open-pr: | ||
| name: Open release PR | ||
| environment: cratesio-publish | ||
| runs-on: ubuntu-latest | ||
| concurrency: | ||
| group: release-plz-${{ github.ref }} | ||
| cancel-in-progress: false | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 512 | ||
|
|
||
| - name: Run release-plz | ||
| uses: Devolutions/actions-public/release-plz@v1 | ||
| with: | ||
| command: release-pr | ||
| manifest-path: rust/Cargo.toml | ||
| config: rust/release-plz.toml | ||
| git-name: Devolutions Bot | ||
| git-email: bot@devolutions.net | ||
| github-token: ${{ secrets.DEVOLUTIONSBOT_WRITE_TOKEN }} | ||
|
|
||
| # Release unpublished packages. | ||
| release: | ||
| name: Release crates | ||
| environment: cratesio-publish | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Authenticate with crates.io | ||
| id: auth | ||
| uses: rust-lang/crates-io-auth-action@v1 | ||
|
|
||
| - name: Run release-plz | ||
| uses: Devolutions/actions-public/release-plz@v1 | ||
| with: | ||
| command: release | ||
| manifest-path: rust/Cargo.toml | ||
| config: rust/release-plz.toml | ||
| registry-token: ${{ steps.auth.outputs.token }} | ||
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,24 @@ | ||
| # pinget-core | ||
|
|
||
| Pure Rust core library for [Pinget](https://github.com/Devolutions/pinget) — a cross-platform package manager that works directly with WinGet source caches, REST endpoints, and installed package state without COM. | ||
|
|
||
| ## Features | ||
|
|
||
| - Search, list, and show package information from WinGet-compatible sources | ||
| - Install, upgrade, repair, and uninstall packages (Windows) | ||
| - Manage package sources (add, remove, update, export, reset) | ||
| - Query installed package state from multiple providers (WinGet, ARP, MSIX) | ||
| - No dependency on WinGet COM APIs | ||
|
|
||
| ## Usage | ||
|
|
||
| Add `pinget-core` to your `Cargo.toml`: | ||
|
|
||
| ```toml | ||
| [dependencies] | ||
| pinget-core = "0.3" | ||
| ``` | ||
|
|
||
| ## License | ||
|
|
||
| This project is licensed under the [MIT License](https://github.com/Devolutions/pinget/blob/master/LICENSE). |
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,17 @@ | ||
| [workspace] | ||
| dependencies_update = true | ||
| git_release_enable = false | ||
| semver_check = true | ||
| pr_branch_prefix = "release-plz/" | ||
| pr_name = "chore(release): prepare for publishing" | ||
|
|
||
| # For now, only publish pinget-core to crates.io. | ||
| [[package]] | ||
| name = "pinget-cli" | ||
| publish = false | ||
| release = false | ||
|
|
||
| [[package]] | ||
| name = "pinget-com" | ||
| publish = false | ||
| release = 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.