-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (43 loc) · 1.2 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
publish_book:
name: Publish mdBook
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build setup
uses: ./.github/actions/build_setup
- name: mdBook setup
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Install `mdbook-cmdrun`
run: cargo install mdbook-cmdrun
- name: Build book
run: mdbook build
- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/book
git-config-email: <>
publish_crates:
name: Publish to crates.io
runs-on: ubuntu-latest
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build setup
uses: ./.github/actions/build_setup
- name: Publish rops library
run: cargo publish --package rops
- name: Publish rops cli
run: cargo publish --package rops-cli