Skip to content

readme update

readme update #2

Workflow file for this run

name: Deploy static content to Cloudflare Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
# Run a build step here if your project requires
# such as hugo, jekyll
# Rename footer.js to footer-cf.js
# Original footer.js is for github pages
# you can safely remove this if you don't use my site
- name: Delete Github footer.js
run: rm ./site/components/footer.js
- name: Rename footer-cf.js to footer.js
run: mv ./site/components/footer-cf.js ./site/components/footer.js
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: eterance-tools
directory: ./
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# Optional: Switch what branch you are publishing to.
# By default this will be the branch which triggered this workflow
branch: main
# Optional: Change the working directory
# All my website content is in the site folder
workingDirectory: ./site
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
wranglerVersion: '3'