Skip to content

Commit a334dd9

Browse files
committed
misc: update actions
1 parent cfa65c1 commit a334dd9

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed
Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,28 @@
11
name: MKX Custom Deploy
22

3-
on:
4-
push:
5-
branches: [main]
6-
7-
pull_request:
8-
branches:
9-
- main
10-
11-
# paths:
12-
# - .github/workflows/pages-deployment.yml
13-
14-
concurrency:
15-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
16-
cancel-in-progress: true
17-
3+
on: [push]
184
jobs:
195
deploy:
206
runs-on: ubuntu-latest
21-
227
permissions:
238
contents: read
249
deployments: write
25-
10+
2611
name: Deploy to Cloudflare Pages
2712
steps:
2813
- name: Checkout
2914
uses: actions/checkout@v4
30-
with:
31-
fetch-depth: 0
32-
33-
- uses: actions/setup-node@v4
34-
with:
35-
node-version: 'latest'
3615

3716
- name: Build
3817
run: |
3918
cd website
4019
npm install && npm run build
4120
4221
- name: Publish
43-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
4422
uses: cloudflare/pages-action@v1
4523
with:
4624
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4725
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
4826
projectName: mkeithx
4927
directory: website/build
50-
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
51-
wranglerVersion: '3'
28+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)