Skip to content

Commit

Permalink
Create ci-pr workflow
Browse files Browse the repository at this point in the history
Remove PR trigger from build-deploy-cloudflare
  • Loading branch information
cppwfs committed Jan 13, 2025
1 parent 5158bea commit df07b99
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/build-deploy-cloudflare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: ['main']
workflow_dispatch:
pull_request:

env:
GOOGLE_ANALYTICS_TRACKING_ID: ${{ secrets.GOOGLE_TAGMANAGER_ID_SCDF }}
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Deploy (CloudFlare)

on:
pull_request:

permissions:
contents: read
pull-requests: write

jobs:
# build and deploy main/PR
build:
name: Build site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# agent may give node which doesn't work for us
- uses: actions/setup-node@v3
with:
node-version: 18.2.0

# do site build
- name: Yarn build
env:
NODE_OPTIONS: '--openssl-legacy-provider'
run: |
yarn install
yarn run fix
yarn build

0 comments on commit df07b99

Please sign in to comment.