Skip to content

Commit

Permalink
crates.ioにアップロードするためのワークフローを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukiToriyama committed Jan 27, 2024
1 parent d547f65 commit 3a23f60
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/upload-cratesio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload crates.io

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build check
run: cargo build --verbose
- name: Unit Testing
run: cargo test --verbose

- name: Try packaging
run: cargo publish --dry-run
- name: Show files will be included
run: cargo package --list
- name: Upload artifact to crates.io
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 3a23f60

Please sign in to comment.