Skip to content

Commit

Permalink
Deploy to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciabad committed Feb 26, 2025
1 parent 406ee94 commit ceb600f
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 24 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy to GitHub Pages

on:
push:
branches: [main]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build --if-present

- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: dist

deploy:
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.8
22
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# Werewolf Card Dealer

[![Netlify Status](https://api.netlify.com/api/v1/badges/71200d24-eda9-4bd5-bc5e-ec9b4ec6b36c/deploy-status)](https://app.netlify.com/sites/werewolf-assistant/deploys)

🃏 PWA to deal werewolf cards

Use it here: <https://wolf.mauri.app/>

This web app lets friends play a custom version of the werewolf game without the need of cards.

Main features:

- Saves progress if closed.
- Responsive design (mobile, tablet and desktop).
- Consistent design.
Expand Down
21 changes: 0 additions & 21 deletions netlify.toml

This file was deleted.

0 comments on commit ceb600f

Please sign in to comment.