1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-02-01 06:57:25 +00:00
UltimateTrainingModpack/.github/workflows/rust.yml

31 lines
700 B
YAML
Raw Normal View History

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
2020-04-13 03:45:31 +00:00
- name: Commit
run: |
2020-04-13 03:43:02 +00:00
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
2020-04-13 03:48:14 +00:00
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