Skip to content

Commit 3afea73

Browse files
committed
ci: add release actin
1 parent 7310a48 commit 3afea73

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.github/workflows/release.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
name: release ${{ matrix.target }}
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- target: x86_64-pc-windows-gnu
15+
archive: zip
16+
- target: x86_64-unknown-linux-musl
17+
archive: tar.gz
18+
- target: x86_64-apple-darwin
19+
archive: zip
20+
21+
steps:
22+
- uses: actions/checkout@master
23+
- uses: rust-build/rust-build.action@v1.4.4
24+
id: compile
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
RUSTTARGET: ${{ matrix.target }}
29+
ARCHIVE_TYPES: ${{ matrix.archive }}
30+
UPLOAD_MODE: none
31+
MINIFY: true
32+
- uses: actions/upload-artifact@v3
33+
with:
34+
name: ${{ matrix.target }
35+
path: ${{ steps.compile.outputs.BUILT_ARCHIVE }}
36+
37+
release:
38+
needs: build
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/download-artifact@v2
42+
- name: List files as a test
43+
run: ls -R

docs/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
<body>
1313
<main>
1414
<section>
15-
<h1>Mdbook Embedify</h1>
15+
<h1>
16+
Mdbook Embedify
17+
<img src="https://img.shields.io/crates/v/mdbook-embedify" alt="version" />
18+
<img src="https://img.shields.io/crates/l/mdbook-embedify" alt="license" />
19+
</h1>
1620

1721
<p>
1822
This is a <a href="https://rust-lang.github.io/mdBook" target="_blank">mdbook</a> preprocessor plugin that

0 commit comments

Comments
 (0)