From 3a23f6050e63de93651443a0cb13fd567b631575 Mon Sep 17 00:00:00 2001 From: Yuuki Toriyama Date: Sat, 27 Jan 2024 17:28:41 +0900 Subject: [PATCH] =?UTF-8?q?crates.io=E3=81=AB=E3=82=A2=E3=83=83=E3=83=97?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=83=89=E3=81=99=E3=82=8B=E3=81=9F=E3=82=81?= =?UTF-8?q?=E3=81=AE=E3=83=AF=E3=83=BC=E3=82=AF=E3=83=95=E3=83=AD=E3=83=BC?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/upload-cratesio.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/upload-cratesio.yaml diff --git a/.github/workflows/upload-cratesio.yaml b/.github/workflows/upload-cratesio.yaml new file mode 100644 index 0000000..b246f2a --- /dev/null +++ b/.github/workflows/upload-cratesio.yaml @@ -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 }} \ No newline at end of file