Merge pull request #491 from Troublor/dependabot/npm_and_yarn/mui/mat… #60
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 to Cloudflare Pages' | |
on: | |
push: | |
branches: ['main'] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
concurrency: | |
group: 'cf-pages' | |
cancel-in-progress: true | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
name: Publish to Cloudflare Pages | |
environment: | |
name: Production | |
url: ${{ steps.publish.outputs.url }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Run a build step here if your project requires | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 22.9.0 | |
- name: build | |
env: | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
run: | | |
corepack enable | |
yarn | |
yarn build | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
id: publish | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: 535c9adaae9f1f866fbf86b609b76f30 | |
projectName: homepage | |
directory: build | |
branch: main |