Skip to content

Commit

Permalink
ADD ci
Browse files Browse the repository at this point in the history
  • Loading branch information
synoet committed Aug 7, 2023
1 parent afd65da commit 1b6f6d3
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
@@ -0,0 +1,26 @@
on:
push:
tags:
- '*'
workflow_dispatch:

name: Publish

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: cargo publish --token ${CRATES_API_KEY}
env:
CRATES_TOKEN: ${{ secrets.CRATES_API_KEY }}
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,23 @@
on:
push:
branches:
- main

name: Test

jobs:
test:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: cargo test

0 comments on commit 1b6f6d3

Please sign in to comment.