Skip to content

deploy

deploy #26

Workflow file for this run

name: deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '17'
cache: 'npm'
- run: npm install
- run: rm -rf build/site && npx antora --fetch antora-playbook.yml
- run: |
git config --global user.name 'wrensecurity'
git config --global user.email '[email protected]'
cd build/site
git init && git checkout -b main
git add -A
git commit -m 'Deploy ${{ github.sha }}'
git push -f https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/WrenSecurity/docs.wrensecurity.org.git main:gh-pages