Skip to content

Commit

Permalink
ci: Rearrange crates deployment with python script
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed May 21, 2024
1 parent 4b29cee commit dde27b4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Setup Nushell
uses: hustcer/[email protected]
- uses: actions/setup-python@v5
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 0.93.0
virtualenvs-create: false
- name: Install task runner
run: pip install poethepoet
- name: Bump versions
shell: nu {0}
run: |
do { cd crates; nu bump-versions.nu }
poetry install --only version
poe bump-version
- name: Publish crates
shell: nu {0}
run: |
open crates/release.json | each {|p| cargo publish -p $p --allow-dirty }
jq '.[]' release.json | xargs -I _ cargo publish -p _ --allow-dirty
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit dde27b4

Please sign in to comment.