Skip to content

Commit

Permalink
test deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ewpratten committed Aug 4, 2023
1 parent 52d06a1 commit e856e35
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ on:
pull_request:
push:
paths:
- ".github/workflows/docs.yml"
- "docs/**"
- "book.toml"
- ".github/workflows/docs.yml"
- "docs/**"
- "book.toml"

jobs:
build:
name: Build Docs
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v3

Expand All @@ -31,4 +35,14 @@ jobs:
BUILD_ONLY: true

- name: Combine Book and Website
run: mkdir -p /tmp/combined && cp -rv docs/website/* /tmp/combined && cp -rv book/ /tmp/combined/book
run: mkdir -p /tmp/combined && cp -rv docs/website/* /tmp/combined && cp -rv target/book/ /tmp/combined/book

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: /tmp/combined

- name: Deploy
uses: actions/deploy-pages@v2
id: deployment
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/ewpratten/reorg2' }}

0 comments on commit e856e35

Please sign in to comment.