ci: Checkout repo in crate releasing worklow #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Crates | |
on: | |
push: | |
# TODO: remove branches | |
branches: ["*"] | |
tags: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Nushell | |
uses: hustcer/[email protected] | |
with: | |
version: 0.93.0 | |
- name: Bump versions | |
shell: nu {0} | |
run: | | |
do { cd crates; nu bump-versions.nu } | |
- name: Publish crates | |
shell: nu {0} | |
run: | | |
ls crates | where type == dir | |
| get name | |
| filter {|n| $"($n)/Cargo.toml" | path exists } | |
| each {|p| split row "/" | last} | |
| each {|p| cargo publish -p $p } |