From 452f866561926c52eaf287acb4ff8bb57c754379 Mon Sep 17 00:00:00 2001 From: Ohad Ravid Date: Fri, 12 Aug 2022 18:40:22 +0300 Subject: [PATCH] Add a test and release github actions --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ .github/workflows/test.yml | 19 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a4bd40a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: release + +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + +jobs: + create-release: + name: create-release + runs-on: windows-2019 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 1 + + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: actions-rs/cargo@v1 + with: + command: publish + args: --token ${{ secrets.CRATES_IO_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0015440 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: test + +on: [push, pull_request] + +jobs: + test: + name: test + runs-on: windows-2019 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 1 + + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: actions-rs/cargo@v1 + with: + command: test