-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (45 loc) · 1.33 KB
/
Copy pathrelease-core.yml
File metadata and controls
50 lines (45 loc) · 1.33 KB
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
46
47
48
49
50
name: Release
on:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ CARGO_REGISTRY_TOKEN }}
sync-cargo-docs:
name: Sync cargo docs to gh-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Sync Docs
run: |
cargo doc
pip install ghp-import
echo '<meta http-equiv=refresh content=0;url=mpesa/index.html>' > target/doc/index.html
ghp-import -n target/doc
git push -qf https://github.com/collinsmuriuki/mpesa-rust.git gh-pages