mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-20 00:46:34 +00:00
Add Github Action to auto-upload documentation
This commit is contained in:
parent
e927cf70ac
commit
d99cba2f34
1 changed files with 28 additions and 0 deletions
28
.github/workflows/rust.yml
vendored
Normal file
28
.github/workflows/rust.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
- name: Docment API
|
||||
run: |
|
||||
cargo doc --target x86_64-unknown-linux-gnu --target-dir .
|
||||
rm -rf ./doc ./debug
|
||||
cp ./x86_64-unknown-linux-gnu/doc ./doc -r
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: gh-pages
|
||||
force: true
|
Loading…
Reference in a new issue