-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf30c9b
commit e3967fc
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|