Skip to content

Commit

Permalink
Merge pull request #219 from carapace-sh/fix-release
Browse files Browse the repository at this point in the history
fix release
  • Loading branch information
rsteube authored Sep 15, 2024
2 parents 0b2ba87 + 4d51a33 commit cbefd7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- name: shallow clone
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: deep clone
uses: actions/checkout@v3
uses: actions/checkout@v4
if: startsWith(github.ref, 'refs/tags/v')
with:
fetch-depth: 0
Expand All @@ -33,12 +33,12 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish crate
if: startsWith(github.ref, 'refs/tags/v')
run: sed -i "s_0.1.0-PLACEHOLDER_${GITHUB_REF/refs\/tags\/v/}_" Cargo.toml && cargo publish --token ${CRATES_TOKEN} --allow-dirty
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit cbefd7d

Please sign in to comment.