Skip to content

Commit

Permalink
feat: auto publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
FMotalleb committed Aug 26, 2024
1 parent 6a640e8 commit 6831b19
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/dependency-update.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish Crate

on:
push:
branches:
- main
paths:
- Cargo.tom
release:
workflow_dispatch:


jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Publish to crates.io
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 6831b19

Please sign in to comment.