Skip to content

Commit

Permalink
Save and restore artifact between phases
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuris committed Sep 7, 2023
1 parent de0eb7a commit c314e84
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:
push:
branches:
- "main"
- "rkuris/doc-it-hurts-when-i-do-this"
pull_request:
branches:
- "main"
- "doc-debug"
- "rkuris/doc-it-hurts-when-i-do-this"

env:
Expand All @@ -30,6 +27,11 @@ jobs:
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
with:
name: page
path: _site
if-no-files-found: error
deploy:
needs: build
permissions:
Expand All @@ -40,6 +42,11 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@master
with:
name: page
path: .
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down

0 comments on commit c314e84

Please sign in to comment.