Skip to content

Commit

Permalink
added deploy script for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
adam_unchained committed Jul 4, 2023
1 parent f2af1f5 commit f13dd62
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Action | Auto deploy "develop" to wen.soonaverse.com

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
environment: production
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: npm install
- name: Build project
run: npm run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
branch: main
directory: dist

0 comments on commit f13dd62

Please sign in to comment.