Skip to content

Commit

Permalink
Update Publish Script
Browse files Browse the repository at this point in the history
  • Loading branch information
sharunkumar committed Dec 29, 2024
1 parent 137657e commit a140909
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Publish Crate

on:
workflow_dispatch:
push:
branches:
- master

jobs:
publish-package:
runs-on: ubuntu-latest
name: Publish Crate
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Cargo Bump & Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
git config --global user.email "sharunksplus@gmail.com"
git config --global user.name "Sharun"
sudo apt install libdbus-1-dev pkg-config
cargo install cargo-bump
cargo bump
cargo update
git add . && git commit -m "bump version"
cargo publish && git push
publish-package:
runs-on: ubuntu-latest
name: Publish Crate
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Cargo Bump & Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
git config --global user.email "sharunksplus@gmail.com"
git config --global user.name "Sharun"
sudo apt install libdbus-1-dev pkg-config
cargo install cargo-bump
cargo bump
cargo check
git add . && git commit -m "bump version"
cargo publish && git push

0 comments on commit a140909

Please sign in to comment.