This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
Separate head meta tags per page #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Internal Site on Main | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: "Branch to deploy" | |
required: true | |
default: "main" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- run: npm ci | |
- name: load UI envars | |
run: | | |
echo "$ENV_LOCAL" > .env | |
env: | |
ENV_LOCAL: ${{ secrets.ENV_LOCAL }} | |
- run: NODE_ENV=production npm run build | |
- uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.FIVECLAWD_CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.FIVECLAWD_CLOUDFLARE_ACCOUNT_ID }} | |
projectName: refresh-ui | |
directory: ./dist/client | |
branch: main |