Skip to content

Commit

Permalink
πŸš€ move to cloudflare pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dvjn committed Nov 1, 2024
1 parent 64df45a commit b58f38d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

jobs:
gh-pages:
deploy-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
Expand All @@ -31,13 +31,9 @@ jobs:
- name: Build πŸ”¨
run: pnpm run build

- name: Add CNAME Entry 🌐
run: echo "dvjn.dev" > ./dist/CNAME

- name: Deploy πŸš€
uses: peaceiris/actions-gh-pages@v3
- name: Publish πŸš€
uses: cloudflare/wrangler-action@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./dist
commit_message: ":rocket: ${{ github.event.head_commit.message }}"
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./dist --project-name=dvjn --branch="${{ github.head_ref || github.ref_name }}" --commit-hash="${{ github.sha }}"

0 comments on commit b58f38d

Please sign in to comment.