Skip to content

Commit

Permalink
Fix conflicting artifact uploads. Bump to 0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Nov 24, 2022
1 parent 4ad7dee commit c87900f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,35 @@ jobs:
profile: minimal
override: true
- name: Install JS dependencies
run: |
npm install -g pnpm
run: npm install -g pnpm
- name: Build Rust package
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Package artifact
run: tar -czf mdbook-quiz-${{ matrix.target }}.tar.gz target/release/mdbook-quiz
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}
path: target/release/mdbook-quiz*
publish:
path: mdbook-quiz-${{ matrix.target }}.tar.gz

publish-artifacts:
needs: build-artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: softprops/action-gh-release@v1
with:
files: |
x86_64-unknown-linux-gnu/mdbook-quiz-x86_64-unknown-linux-gnu.tar.gz
x86_64-apple-darwin/mdbook-quiz-x86_64-apple-darwin.tar.gz
aarch64-unknown-linux-gnu/mdbook-quiz-aarch64-unknown-linux-gnu.tar.gz
aarch64-apple-darwin/mdbook-quiz-aarch64-apple-darwin.tar.gz
publish-crate:
needs: publish-artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
Expand Down Expand Up @@ -79,18 +93,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/book

publish-artifacts:
needs: build-artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: softprops/action-gh-release@v1
with:
files: |
x86_64-unknown-linux-gnu/mdbook-quiz
x86_64-apple-darwin/mdbook-quiz
aarch64-unknown-linux-gnu/mdbook-quiz
aarch64-apple-darwin/mdbook-quiz


2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "mdbook-quiz"
authors = ["Will Crichton <[email protected]>"]
description = "Interactive quizzes for your mdBook"
license = "MIT"
version = "0.2.5"
version = "0.2.6"
edition = "2021"
include = ["/src", "/js/dist/"]
repository = "https://github.com/willcrichton/mdbook-quiz"
Expand Down
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wcrichto/quiz",
"version": "0.2.5",
"version": "0.2.6",
"description": "",
"author": "Will Crichton <[email protected]>",
"homepage": "https://github.com/willcrichton/mdbook-quiz",
Expand Down

0 comments on commit c87900f

Please sign in to comment.