Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Jun 27, 2022
1 parent cf30c9b commit e3967fc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
push:
tags:
- "v*"


jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: npm install -g pnpm
- uses: actions-rs/cargo@v1
with:
command: test
- run: pnpm test && pnpm lint
working-directory: js
- uses: actions-rs/cargo@v1
with:
# --allow-dirty needed for js/dist files
command: publish --allow-dirty --token ${{ secrets.CARGO_TOKEN }}
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[package]
name = "mdbook-quiz"
authors = ["Will Crichton <[email protected]>"]
description = "Interactive quizzes for your mdBook"
license = "MIT"
version = "0.1.0"
edition = "2021"
include = ["/src", "/js/dist/"]
repository = "https://github.com/willcrichton/mdbook-quiz"

[dependencies]
serde_json = "1"
Expand Down

0 comments on commit e3967fc

Please sign in to comment.