Skip to content

Commit 58b8d4b

Browse files
committed
feat(ci): more targeted deploy
1 parent e5ea7f4 commit 58b8d4b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/cf-pages-deploy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ jobs:
1010
name: Deploy to CF Pages
1111
steps:
1212
- uses: actions/checkout@v4
13+
- name: Build a deploy in `dist`
14+
run: |
15+
mkdir ./dist
16+
cp -r -t ./dist \
17+
v2/badges/ v2/control/ v2/styles/ v2/*.min.js v2/irc-message.js v2/script.js v2/tinycolor.js v2/*.html \
18+
img/ styles/ favicon.ico index.html script.js \
19+
jquery.min.js purify.min.js
1320
- name: Deploy
1421
uses: cloudflare/wrangler-action@v3
1522
with:
1623
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
1724
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
18-
command: pages deploy ./ --project-name="chatis-v2" --branch="${{ github.ref_name }}"
25+
command: pages deploy ./dist --project-name="chatis-v2" --branch="${{ github.ref_name }}"

0 commit comments

Comments
 (0)