Skip to content

Commit

Permalink
Use action to upload docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Aug 13, 2020
1 parent 160995b commit 6e97bc0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2

- name: Install ${{ matrix.version }}
uses: actions-rs/toolchain@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: macOS-latest

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2

- name: Install ${{ matrix.version }}
uses: actions-rs/toolchain@v1
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/upload-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
if: github.repository == 'actix/actix-web'

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand All @@ -29,7 +29,9 @@ jobs:
- name: Tweak HTML
run: echo "<meta http-equiv=refresh content=0;url=os_balloon/index.html>" > target/doc/index.html

- name: Upload documentation
run: |
git clone https://github.com/davisp/ghp-import.git
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://${{ secrets.GITHUB_TOKEN }}@github.com/"${{ github.repository }}.git" target/doc
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: target/doc
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2

- name: Install ${{ matrix.version }}
uses: actions-rs/toolchain@v1
Expand Down

0 comments on commit 6e97bc0

Please sign in to comment.