forked from saber-hq/anchor-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.04 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:
- "v*.*.*"
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: "1.61.0"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rust-docs
- uses: Swatinem/rust-cache@v2
- run: cargo doc
- id: build-changelog
name: Update the changelog
uses: mikepenz/release-changelog-builder-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Publish
- name: Create Release
uses: softprops/action-gh-release@v1
with:
body: ${{steps.build-changelog.outputs.changelog}}
generate_release_notes: true
# Deploy site
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: target/doc