Skip to content

Merge pull request #6 from thecodefreak/fix-bug-issue-5 #49

Merge pull request #6 from thecodefreak/fix-bug-issue-5

Merge pull request #6 from thecodefreak/fix-bug-issue-5 #49

Workflow file for this run

on: [push]
jobs:
publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install & build
uses: actions/setup-node@master
- name: Installing project dependencies
run: npm install
- name: Building the project
run: npm run build
# Run a build step here if your project requires
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: demo-logdy-dev
directory: dist
# Optional: Switch what branch you are publishing to.
# By default this will be the branch which triggered this workflow
branch: main
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
wranglerVersion: '3'