Skip to content

Commit

Permalink
Merge pull request #6 from SKTT1Ryze/deploy
Browse files Browse the repository at this point in the history
Deploy to Cloudflare Page
  • Loading branch information
SKTT1Ryze authored Oct 13, 2023
2 parents fc5a0c3 + d47845d commit 4b79387
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/frontend_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
push:
branches:
- main
name: Frontend Deploy
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- name: Generate Undeads Json
run: cargo run && cp ./undeads.json ../frontend/
working-directory: ./runtime
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: bahmutov/npm-install@v1
with:
useLockFile: true
working-directory: ./frontend
- name: Build Check
run: yarn build
working-directory: ./frontend
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 3a49159509ead63f611cec6e748eea47
projectName: valhalla
directory: ./frontend/dist
branch: main

0 comments on commit 4b79387

Please sign in to comment.