1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-01-20 09:20:13 +00:00
UltimateTrainingModpack/.github/workflows/rust.yml
2020-04-12 23:48:14 -04:00

30 lines
700 B
YAML

name: Rust
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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: Commit
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -m "Add Documentation"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true