Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce publish CI job #3308

Merged
merged 2 commits into from
Sep 26, 2023
Merged
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
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,45 @@ on:
types: [published]

jobs:
publish:
name: Publish crates
runs-on: ubuntu-latest
timeout-minutes: 60
env:
RUSTFLAGS: -D warnings
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Install cargo-workspaces
uses: actions-rs/[email protected]
with:
crate: cargo-workspaces

- name: Release
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PATCH: ${{ github.run_number }}
shell: bash
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Action"
cargo workspaces publish \
--from-git \
--yes \
--no-git-commit \
skip

doc-publish:
name: Publish documentation
needs: publish
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -44,6 +82,7 @@ jobs:

release-binaries:
name: Publish binaries
needs: publish
strategy:
fail-fast: false
matrix:
Expand Down
Loading