mirror of
https://github.com/ghndrx/gregh.dev.git
synced 2026-02-10 06:44:57 +00:00
update action
This commit is contained in:
39
.github/workflows/deployment.yaml
vendored
39
.github/workflows/deployment.yaml
vendored
@@ -1,23 +1,30 @@
|
|||||||
# filepath: /Users/greg/Documents/repositories/gregh.dev/.github/workflows/deployment.yaml
|
run-name: "☁️ CF › Deploy"
|
||||||
name: Deploy to Cloudflare Pages
|
name: "☁️ CF › Deploy"
|
||||||
|
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
job-publish:
|
||||||
|
name: "📦 Publish to Cloudflare"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
deployments: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: "☑️ Checkout"
|
||||||
uses: actions/checkout@v2
|
id: task_publish_checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Deploy to Cloudflare Pages
|
- name: "☁️ Publish to Cloudflare Pages"
|
||||||
uses: cloudflare/pages-action@v1
|
id: task_publish_push
|
||||||
|
uses: aetherinox/cloudflare-publish-action@latest
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} # Cloudflare API Token from https://dash.cloudflare.com/profile/api-tokens
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} # Cloudflare account ID shown on the right side of the CF website
|
||||||
projectName: gregh
|
projectName: ${{ variables.PROJECT_NAME }} # Project name assigned during creation (see Workers & Pages section)
|
||||||
directory: .
|
directory: . # The directory where your built site is located
|
||||||
|
branch: main # The branch to deploy; defaults to the branch triggering the workflow
|
||||||
|
workingDirectory: . # Working directory relative to the repository root
|
||||||
|
wranglerVersion: '3' # Optional: Specify a Wrangler version (e.g. '3' or 'beta')
|
||||||
|
commitDirty: false # Optional: Mark workspace as dirty or not for deployment
|
||||||
|
skipCaching: false # Optional: Whether to skip asset caching to speed up builds
|
||||||
Reference in New Issue
Block a user