ci: Split out the actual GHA publish job

This commit is contained in:
Henrik Tjäder 2023-03-04 00:15:32 +01:00
parent 38a48e5d5c
commit bf35fa3f15

View file

@ -568,6 +568,31 @@ jobs:
cp CNAME $td/ cp CNAME $td/
mv $td/ bookstodeploy mv $td/ bookstodeploy
- name: Archive the webroot
run: |
tar -cf bookstodeploy.tar bookstodeploy
- name: Store the books
uses: actions/upload-artifact@v3
with:
name: bookstodeploy
path: bookstodeploy.tar
ghapages:
name: Publish rtic.rs
runs-on: ubuntu-22.04
needs:
- deploy
steps:
- name: Download books
uses: actions/download-artifact@v3
with:
name: bookstodeploy
- name: Extract the books
run: |
tar -xf bookstodeploy.tar
- name: Deploy to GH-pages - name: Deploy to GH-pages
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
with: with: