Skip to content

Commit

Permalink
Add a test and release github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadravid committed Aug 12, 2022
1 parent 2e6365a commit 452f866
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 452f866

Please sign in to comment.