Skip to content

Commit

Permalink
fix: set --allow-branch to HEAD for publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Jan 4, 2024
1 parent c9dd706 commit e345578
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@v2
- name: Install cargo-release
run: cargo install cargo-release
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@v2
- name: Publish crates (dry run)
run: cargo release --workspace --no-push --no-tag --no-publish --exclude ibc-derive
env:
Expand All @@ -43,14 +43,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.ref }}
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@v2
- name: Install cargo-release
run: cargo install cargo-release
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@v2
- name: Publish crates
run: cargo release --workspace --no-push --no-tag --allow-branch [HEAD, *] --exclude ibc-derive --execute
run: cargo release --workspace --no-push --no-tag --exclude ibc-derive --allow-branch HEAD --execute
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

Expand All @@ -62,8 +60,6 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.ref }}
- uses: taiki-e/create-gh-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e345578

Please sign in to comment.