Skip to content

Deploy Number Guessing Game v2 #50

Deploy Number Guessing Game v2

Deploy Number Guessing Game v2 #50

name: Deploy Number Guessing Game v2
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm install
working-directory: ./guessing-game-v2
- name: Build application
run: npm run build
working-directory: ./guessing-game-v2
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./guessing-game-v2/dist
destination_dir: ./guessing-game-v2