We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13b05e7 + fbdd013 commit bb6b4f7Copy full SHA for bb6b4f7
.github/workflows/publish-mdbook-spec.yml
@@ -0,0 +1,27 @@
1
+name: Publish mdbook-spec
2
+on:
3
+ workflow_dispatch:
4
+
5
+permissions:
6
+ contents: write
7
8
+jobs:
9
+ publish:
10
+ name: Publish mdbook-spec
11
+ runs-on: ubuntu-latest
12
+ defaults:
13
+ run:
14
+ working-directory: ./mdbook-spec
15
+ steps:
16
+ - uses: actions/checkout@master
17
+ - name: Test
18
+ run: cargo test
19
+ - name: Publish
20
+ env:
21
+ CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
22
+ run: |
23
+ version=`sed -n -E 's/^version = "(.*)"/\1/p' Cargo.toml`
24
+ cargo publish --no-verify
25
+ tag="mdbook-spec-${version}"
26
+ git tag $tag
27
+ git push origin "$tag"
0 commit comments