Skip to content

Commit

Permalink
Tweak crate release action for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Aug 15, 2024
1 parent 9a6be9b commit 5dfd1c7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ jobs:
target
rosey/target
key: ${{ runner.os }}-stable
- name: Setup
run: |
rustup install stable

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
default: true
components: rustfmt, clippy

- name: Get Version
run: echo GIT_VERSION="$(git describe --tags | sed 's/^v\(.*\)$/\1/')" >> $GITHUB_ENV
- name: Prepare Git
Expand All @@ -51,7 +57,7 @@ jobs:
- name: Build
working-directory: ./rosey
run: cargo build --release --verbose
run: RELEASE_VERSION=${GITHUB_REF#refs/tags/} cargo build --release --verbose
- name: Publish
working-directory: ./rosey
run: cargo publish --allow-dirty
Expand Down

0 comments on commit 5dfd1c7

Please sign in to comment.