Skip to content

first try to automate releases #15

first try to automate releases

first try to automate releases #15

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
steps:
- uses: actions/checkout@v4
with:
repository: getargv/getargv
path: getargv
token: ${{ secrets.GH_PAT }}
- name: Build libgetargv
run: make install_dylib
working-directory: getargv
- uses: actions/checkout@v4
with:
path: getargv-sys
- name: Build
run: cargo build --verbose
working-directory: getargv-sys
- name: Run tests
run: cargo test --verbose
working-directory: getargv-sys
- name: Dryrun Publish Crate
run: cargo publish --dry-run
- name: Bump version
run: |
cargo install cargo-bump
cargo bump patch --git-tag
git push --follow-tags
- name: Publish Crate
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}