Skip to content

manual-deploy

manual-deploy #8

Workflow file for this run

name: manual-deploy
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'gh-pages-stage'
- name: Archive artifact
shell: bash
run: |
tar \
--dereference --hard-dereference \
--directory ghg/www/ \
-cvf ${{ runner.temp }}/artifact.tar \
--exclude=.git \
--exclude=.github \
.
- name: Upload artifact
uses: actions/upload-artifact@v3.1.2
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
retention-days: 7
deploy:
needs: upload
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy 🚀
id: deployment
uses: actions/deploy-pages@v1