Skip to content

Commit

Permalink
Pages Action -> Wrangler Action
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoalcarazdelaosa committed Apr 30, 2024
1 parent 03e57da commit efa059b
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/publish-CFP.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
# Exclude pull requests from all repositories except yours
# See https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context
# See https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request

if: ${{ github.repository == 'rodrigoalcarazdelaosa/fisiquimicamente' }}

permissions:
Expand All @@ -22,16 +22,16 @@ jobs:
strategy:
matrix:
include:
- projectName: 'fisiquimicamente'
directory: 'public/es'
- projectName: "fisiquimicamente"
directory: "public/es"
GoogleVerificationCode: GOOGLE_VERIFICATION_CODE_ES
PDFEmbedKey: PDF_EMBED_API_KEY_ES
- projectName: 'physichemically'
directory: 'public/en'
- projectName: "physichemically"
directory: "public/en"
GoogleVerificationCode: GOOGLE_VERIFICATION_CODE_EN
PDFEmbedKey: PDF_EMBED_API_KEY_EN
- projectName: 'fisiquimicament'
directory: 'public/ca'
- projectName: "fisiquimicament"
directory: "public/ca"
GoogleVerificationCode: GOOGLE_VERIFICATION_CODE_CA
PDFEmbedKey: PDF_EMBED_API_KEY_CA

Expand Down Expand Up @@ -69,15 +69,10 @@ jobs:
env:
HUGOxPARAMSxMARKETINGxVERIFICATIONxGOOGLE: ${{ secrets[matrix.GoogleVerificationCode] }}
HUGOxPARAMSxPDF_EMBED_API_KEY: ${{ secrets[matrix.PDFEmbedKey] }}
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1

- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ matrix.projectName }}
directory: ${{ matrix.directory }}
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# Enable Wrangler v3
wranglerVersion: '3'
command: pages deploy ${{ matrix.directory }} --project-name=${{ matrix.projectName }} --commit-dirty=true

0 comments on commit efa059b

Please sign in to comment.