Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/crates-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Publish binaries
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
release:
types: [published]
types: [created, published]
push:
branches: [master]
pull_request:
Expand All @@ -15,6 +15,11 @@ jobs:
release:
name: Release for ${{ matrix.os }}
runs-on: ${{ matrix.os }}

# Explicitly grant GITHUB_TOKEN write access to attach binaries to the release
permissions:
contents: write

strategy:
matrix:
include:
Expand All @@ -29,11 +34,13 @@ jobs:
os_name: "macos-amd64"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Get tag or commit
run: |
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
if [ "${{ github.event_name }}" = "release" ]; then
echo "RELEASE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
elif [[ "${GITHUB_REF}" == refs/tags/* ]]; then
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
else
SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
Expand Down Expand Up @@ -64,4 +71,5 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release.tar.gz
asset_name: ${{ env.REPO }}-${{ env.RELEASE_VERSION }}-${{ matrix.os_name }}.tar.gz
tag: ${{ github.ref }}
tag: ${{ github.event.release.tag_name }}
overwrite: true
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased] - Next Date

### Changed

- Grant github release workflow permission to write binaries


## [0.8.1] - 2026-10-25

Expand Down
Loading