Skip to content

Publish Site

Publish Site #32543

Workflow file for this run

name: Publish Site
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '0 * * * *'
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout Repo
- uses: docker/[email protected]
name: Docker login
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Site
run: |
docker run \
-e INPUT_GITHUBTOKEN=${{ secrets.GH_PAT_REPO_WORKFLOW_CODERDOJO024 }} \
-e INPUT_HUGOVERSION=extended_0.123.8 \
-e INPUT_ARGS="--gc --minify --cleanDestinationDir" \
-e INPUT_CNAME="coderdojo-nijmegen.nl" \
-e INPUT_SLACKWEBHOOK=${{ secrets.SLACK_WEBHOOK }} \
-e INPUT_EVENTBRITEAPIKEY=${{ secrets.EVENTBRITE_API_KEY }} \
-e GITHUB_SERVER_URL=${{ github.server_url }} \
-e GITHUB_REPOSITORY=${{ github.repository }} \
-e GITHUB_RUN_ID=${{ github.run_id }} \
-e GITHUB_EVENT_NAME=${{ github.event_name }} \
-e GITHUB_REF=${{ github.ref }} \
-e GITHUB_ACTOR=${{ github.actor }} \
-e GITHUB_SHA=${{ github.sha }} \
-v ${{ github.workspace }}:/site/ \
ghcr.io/coderdojonijmegen/hugo-coderdojo-nijmegen:main