update env in workflow #2
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: packer build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
publish-package: | |
runs-on: ubuntu-latest | |
name: Publish Crate | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Cargo Bump & Publish | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
run: | | |
cargo install cargo-bump | |
cargo bump | |
git config --global user.email "sharunksplus@gmail.com" | |
git config --global user.name "Sharun" | |
git add . && git commit -m "bump version" && git push | |
cargo publish | |