Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr authored Mar 22, 2024
1 parent 3a84ee4 commit a65f109
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy

on:
push:
branches: [ main ]

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: install dependencies
run: npm ci
- name: build app
run: npm run build
env:
PUBLIC_URL: /game
- name: upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./build
- name: deploy to github pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit a65f109

Please sign in to comment.