Skip to content

Commit

Permalink
ci: start building docs for serenity-next (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
ev3nvy authored Oct 25, 2023
1 parent 928d777 commit 8f7da3d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,15 @@ jobs:
RUSTFLAGS: -C target-cpu=haswell # for simd-json
RUSTDOCFLAGS: --cfg doc_nightly -D warnings

# If on current/next branch (as opposed to PR or whatever), publish docs to github pages
# If on current/next/serenity-next branch (as opposed to PR or whatever), publish docs to github pages
- name: Move files
if: github.ref == 'refs/heads/current' || github.ref == 'refs/heads/next'
if: github.ref_name == 'current' || github.ref_name == 'next' || github.ref_name == 'serenity-next'
shell: bash
run: |
DIR=${GITHUB_REF#refs/heads/}
mkdir -p ./docs/$DIR
mv ./target/doc/* ./docs/$DIR/
mkdir -p ./docs/${{ github.ref_name }}
mv ./target/doc/* ./docs/${{ github.ref_name }}/
- name: Deploy docs
if: github.ref == 'refs/heads/current' || github.ref == 'refs/heads/next'
if: github.ref_name == 'current' || github.ref_name == 'next' || github.ref_name == 'serenity-next'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 8f7da3d

Please sign in to comment.