Skip to content

Deploy pages

Deploy pages #1

Workflow file for this run

name: Deploy pages
on:
push:
branches:
- main
paths:
- pages/**
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: 3.x
cache: pip
- name: Setup ctfcli
run: |
pip install -r requirements.txt
mkdir .ctf
cat <<EOF > .ctf/config
[config]
url = https://${{ vars.CTFD_DOMAIN }}
access_token = ${{ secrets.CTFD_TOKEN }}
[cookies]
site_password = ${{ secrets.CTFD_SITE_PASSWORD }}
[challenges]
EOF
- name: Deploy pages
run: ctf pages sync