mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Convert more taskcluster jobs to Github Actions.
This commit is contained in:
parent
84c8653d7e
commit
a82b268be0
3 changed files with 148 additions and 1 deletions
30
.github/workflows/docs.yml
vendored
Normal file
30
.github/workflows/docs.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Docs upload
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
upload-docs:
|
||||
name: Upload docs to GitHub Pages
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Compile docs
|
||||
run: python3 ./mach doc
|
||||
env:
|
||||
RUSTDOCFLAGS: --disable-minification
|
||||
- name: Upload docs
|
||||
run: |
|
||||
cd target/doc
|
||||
git init
|
||||
git add .
|
||||
git -c user.name="Workflow" -c user.email="" \
|
||||
commit -q -m "Rebuild Servo documentation"
|
||||
git remote set-url origin https://git:${DOC_SERVO_ORG}@github.com/servo/doc.servo.org
|
||||
git push --force origin FETCH_HEAD:gh-pages
|
||||
env:
|
||||
DOC_SERVO_ORG: ${{ secrets.DOC_SERVO_ORG }}
|
Loading…
Add table
Add a link
Reference in a new issue