Skip to content

Commit

Permalink
More tweaks, use . instead of _site on extract
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuris committed Sep 7, 2023
1 parent c314e84 commit 205fa78
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ jobs:
- uses: arduino/setup-protoc@v2
- name: Build
run: cargo doc --no-deps
- run: |
- name: Set up _site
run: |
rm -fr _site
mkdir _site
echo "<meta http-equiv=\"refresh\" content=\"0; url=firewood\">" > _site/index.html
- run: cp -r target/doc/* ./_site
- uses: actions/upload-artifact@master
- name: Copy doc files to _site
run: cp -r target/doc/* ./_site
- uses: actions/upload-artifact@v3
with:
name: page
path: _site
name: pages
path: _site/
if-no-files-found: error
deploy:
needs: build
Expand All @@ -42,15 +44,17 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@master
- name: Download pages artifact
uses: actions/download-artifact@v3
with:
name: page
name: pages
path: .
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: .
- name: Deploy to GitHub pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 205fa78

Please sign in to comment.