Skip to content

initial auto-publish #7

initial auto-publish

initial auto-publish #7

Workflow file for this run

name: Rust CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
repository: getargv/getargv
path: getargv-c
token: ${{ secrets.GH_PAT }}
- name: Build libgetargv
run: make install_dylib
working-directory: getargv-c
- uses: actions/checkout@v4
with:
path: getargv-rust
- name: Build
run: cargo build --verbose
working-directory: getargv-rust
- name: Run tests
run: cargo test --verbose
working-directory: getargv-rust
- name: Dryrun Publish Crate
run: cargo publish --dry-run
working-directory: getargv-rust
- name: Bump version
run: |
cargo install cargo-bump
cargo bump patch --git-tag
git push --follow-tags
working-directory: getargv-rust
- name: Publish Crate
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
working-directory: getargv-rust