Skip to content

Merge branch 'main' into dev #117

Merge branch 'main' into dev

Merge branch 'main' into dev #117

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- main
- dev
- ci
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs build --site-dir ./public
- name: Deploy
uses: cloudflare/wrangler-action@v3.4.1
with:
wranglerVersion: "3.13.2"
command: pages deploy --project-name docs-gosh --branch "${{ github.ref_name }}" --commit-hash "${{ github.sha }}" ./public
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}