Skip to content

blog (procreate ai) #186

blog (procreate ai)

blog (procreate ai) #186

Workflow file for this run

on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:github-action
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.PAT_TOKEN }}
- name: Fetch LFS
env:
LFS_ACCESS_KEY: ${{ secrets.LFS_ACCESS_KEY }}
LFS_SECRET_KEY: ${{ secrets.LFS_SECRET_KEY }}
LFS_ENDPOINT: ${{ secrets.LFS_ENDPOINT }}
LFS_DOMAIN: ${{ secrets.LFS_DOMAIN }}
LFS_DOMAIN_IP: ${{ secrets.LFS_DOMAIN_IP }}
run: |
sudo echo "${LFS_DOMAIN_IP} ${LFS_DOMAIN}" | sudo tee -a /etc/hosts
echo -e "[lfs]\n\turl = https://${LFS_ACCESS_KEY}:${LFS_SECRET_KEY}@${LFS_ENDPOINT}" > .lfsconfig
git lfs env
git lfs fetch --all && git lfs checkout
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Build Deno
run: deno task build
- name: Publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
directory: build
wranglerVersion: '3'