generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdfff71
commit 43b716c
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Cloudflare Pages Deploy Deletion Workflow", | ||
"description": "Deploy deletion from Cloudflare Pages using andykenward/github-actions-cloudflare-pages/delete", | ||
"iconName": "octicon trash", | ||
"categories": ["Deployment"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
|
||
name: Cloudflare Pages Delete | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- $default-branch | ||
jobs: | ||
deploy: | ||
permissions: | ||
actions: read # Only required for private GitHub Repo | ||
contents: read | ||
deployments: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: 'Checkout Github Action' | ||
uses: actions/checkout@v4 | ||
- name: 'Deploy deletion from Cloudflare Pages' | ||
uses: andykenward/github-actions-cloudflare-pages/delete@v2 | ||
with: | ||
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Cloudflare Pages Deploy Workflow", | ||
"description": "Deploy to Cloudflare Pages using andykenward/github-actions-cloudflare-pages", | ||
"iconName": "octicon cloud", | ||
"categories": ["Deployment"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
|
||
name: Cloudflare Pages Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- $default-branch | ||
pull_request: | ||
branches: | ||
- $default-branch | ||
jobs: | ||
deploy: | ||
permissions: | ||
actions: read # Only required for private GitHub Repo | ||
contents: read | ||
deployments: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: 'Checkout Github Action' | ||
uses: actions/checkout@v4 | ||
- name: 'Deploy to Cloudflare Pages' | ||
uses: andykenward/github-actions-cloudflare-pages@v2 | ||
with: | ||
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
cloudflare-account-id: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} | ||
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }} | ||
directory: dist | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
github-environment: ${{ (github.ref == 'refs/heads/main' && 'production') || 'preview' }} |