Skip to content

Release Docs

Release Docs #10

Workflow file for this run

name: 'Release Docs'
on:
workflow_dispatch:
env:
DOC_ARTIFACT: webHelpPQ2-all.zip
# Gives the workflow permissions to clone the repo and create a page deployment
permissions:
id-token: write
pages: write
jobs:
release:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: ⬇️ Download artifacts from latest workflow
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
workflow_conclusion: success
- name: 🔍 view artifacts to be used
run: ls -R
working-directory: .
- name: Unzip artifact
uses: montudor/action-zip@v1
with:
args: unzip -qq docs/${{ env.DOC_ARTIFACT }} -d dir
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: dir
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1