1
0
Fork 0
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:
jam1garner 2020-04-12 23:36:16 -04:00 committed by GitHub
parent e927cf70ac
commit d99cba2f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
.github/workflows/rust.yml vendored Normal file
View 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