Skip to content

Commit

Permalink
fix: release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMoesl committed Nov 9, 2023
1 parent cac41e1 commit 8c034e5
Showing 1 changed file with 9 additions and 28 deletions.
37 changes: 9 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Release

on:
push:
branches:
- release
release:
types:
- published
workflow_dispatch:

env:
Expand All @@ -12,7 +12,7 @@ env:

jobs:
release:
name: Semantic Release
name: Publish Crate
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -29,27 +29,8 @@ jobs:
toolchain: stable
override: true

- name: Install Semantic Release for Rust
uses: actions-rs/cargo@v1
with:
command: install
args: semantic-release-rust --version 1.0.0-alpha.7 --locked

# The release build is used in the Semantic Release step
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic
with:
semantic_version: 17.1.1
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish Crate
run: >
cargo publish \
--locked \
--token ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 8c034e5

Please sign in to comment.