-
Notifications
You must be signed in to change notification settings - Fork 1
fix(release): repair release.yml — YAML syntax errors, wrong action versions, broken permissions and tokens #40
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,22 +5,21 @@ | |||||||
| name: Release | ||||||||
|
|
||||||||
| on: | ||||||||
| push: | ||||||||
| tags: | ||||||||
| - "v*" | ||||||||
| workflow_dispatch: | ||||||||
| push: | ||||||||
| tags: | ||||||||
| - "v*" | ||||||||
| workflow_dispatch: | ||||||||
|
|
||||||||
| env: | ||||||||
| CARGO_TERM_COLOR: always | ||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||
| CARGO_TERM_COLOR: always | ||||||||
|
|
||||||||
| jobs: | ||||||||
| permissions: | ||||||||
| contents: write | ||||||||
| create-release: | ||||||||
| runs-on: ubuntu-latest | ||||||||
| permissions: | ||||||||
| contents: write | ||||||||
| steps: | ||||||||
| - uses: actions/checkout@v4 | ||||||||
| - uses: actions/checkout@v6 | ||||||||
| - uses: taiki-e/create-gh-release-action@v1 | ||||||||
| if: github.event_name != 'workflow_dispatch' | ||||||||
| with: | ||||||||
|
|
@@ -31,8 +30,8 @@ jobs: | |||||||
| build: | ||||||||
| runs-on: ${{ matrix.os }} | ||||||||
| needs: [create-release] | ||||||||
| permissions: | ||||||||
| contents: write | ||||||||
| permissions: | ||||||||
| contents: write | ||||||||
| strategy: | ||||||||
| fail-fast: false | ||||||||
| matrix: | ||||||||
|
|
@@ -54,6 +53,10 @@ jobs: | |||||||
| build-tool: cargo | ||||||||
| steps: | ||||||||
| - uses: actions/checkout@v6 | ||||||||
|
||||||||
| with: | ||||||||
| fetch-depth: 0 | ||||||||
| fetch-tags: true | ||||||||
| lfs: false | ||||||||
| - uses: Swatinem/rust-cache@v2 | ||||||||
| with: | ||||||||
| shared-key: rust-${{ matrix.target }} | ||||||||
|
|
@@ -67,49 +70,38 @@ jobs: | |||||||
| features: git2/vendored-libgit2,git2/vendored-openssl | ||||||||
| dry-run: ${{ github.event_name == 'workflow_dispatch' }} | ||||||||
|
|
||||||||
| github_release: | ||||||||
| name: Create GitHub Release | ||||||||
| needs: [build, publish] | ||||||||
| runs-on: ubuntu-latest | ||||||||
| permissions: | ||||||||
| contents: write | ||||||||
| steps: | ||||||||
| - uses: actions/checkout@v6 | ||||||||
|
|
||||||||
| - name: Download all artifacts | ||||||||
| uses: actions/download-artifact@v4 | ||||||||
|
|
||||||||
| - name: Create Release | ||||||||
| uses: softprops/action-gh-release@v2 | ||||||||
| with: | ||||||||
| files: | | ||||||||
| submod-linux-x86_64/submod | ||||||||
| submod-linux-x86_64-musl/submod | ||||||||
| submod-windows-x86_64.exe/submod.exe | ||||||||
| submod-macos-aarch64/submod | ||||||||
| body_path: CHANGELOG.md | ||||||||
| draft: false | ||||||||
| prerelease: false | ||||||||
| env: | ||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||
|
|
||||||||
| publish: | ||||||||
| name: Publish to crates.io | ||||||||
| needs: [build] | ||||||||
| runs-on: ubuntu-latest | ||||||||
| environment: cratesio | ||||||||
| permissions: | ||||||||
| contents: read | ||||||||
| id-token: write | ||||||||
| steps: | ||||||||
| - uses: actions/checkout@v6 | ||||||||
| with: | ||||||||
| submodules: recursive | ||||||||
| - uses: actions-rs/toolchain@v1 | ||||||||
| with: | ||||||||
| toolchain: stable | ||||||||
| override: true | ||||||||
| - uses: katyo/publish-crates@v2 | ||||||||
| with: | ||||||||
| token: ${{ secrets.GITHUB_TOKEN }} | ||||||||
| args: --allow-dirty | ||||||||
| name: Publish to crates.io | ||||||||
| needs: [build] | ||||||||
| runs-on: ubuntu-latest | ||||||||
| environment: cratesio | ||||||||
| permissions: | ||||||||
| contents: read | ||||||||
| id-token: write | ||||||||
|
Comment on lines
73
to
+80
|
||||||||
| steps: | ||||||||
| - uses: actions/checkout@v6 | ||||||||
|
||||||||
| with: | ||||||||
| submodules: recursive | ||||||||
| - uses: dtolnay/rust-toolchain@stable | ||||||||
| - uses: katyo/publish-crates@v2 | ||||||||
| with: | ||||||||
| token: ${{ secrets.GITHUB_TOKEN }} | ||||||||
| args: --allow-dirty | ||||||||
| ignore-unpublished-changes: true | ||||||||
|
Comment on lines
+86
to
+90
|
||||||||
|
|
||||||||
| github_release: | ||||||||
| name: Publish GitHub Release | ||||||||
| needs: [build, publish] | ||||||||
|
||||||||
| needs: [build, publish] | |
| needs: [build, publish] | |
| if: github.event_name != 'workflow_dispatch' |
Copilot
AI
Mar 20, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This job still references actions/checkout@v6 despite the PR description stating @v6 should be replaced with @v4. Update to the intended checkout version to avoid unexpected workflow failures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still uses
actions/checkout@v6, but the PR description says the fix was to downgrade from a non-existent@v6to@v4. If the intent is to use the current stable checkout action, update this toactions/checkout@v4(and keep versions consistent across the workflow).