Skip to content

Commit

Permalink
ci: add github actiona
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrad77 committed Dec 15, 2024
1 parent d8ef477 commit a16821a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to GitHub Pages

on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Build Web App
run: npm run build:web

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist-web
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "theater-manager",
"description": "An electron app to manage theater VFX",
"homepage": "https://github.com/mehrad77/theater-manager#readme",
"homepage": "https://mehrad77.github.io/theater-manager",
"bugs": {
"url": "https://github.com/mehrad77/theater-manager/issues"
},
Expand Down Expand Up @@ -242,6 +242,5 @@
".erb/dll/**"
],
"logLevel": "quiet"
},
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
}
}

0 comments on commit a16821a

Please sign in to comment.