Skip to content

Publish Site

Publish Site #10

Workflow file for this run

name: Publish Site
on:
workflow_dispatch:
workflow_run:
workflows:
- "Run validation and build checks"
branches:
- main
types:
- completed
jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment: prod
env:
CONTAINER_ENGINE: docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Deployment key
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.DEPLOY_KEY }}" | base64 -d > ~/.ssh/id_rsa
- name: Publish site
run: make publish
env:
TARGET_SYSTEM: ${{ secrets.TARGET_SYSTEM }} # This should be user@host