From a16821a4e13d70361bb7c27554001698547066c7 Mon Sep 17 00:00:00 2001 From: Mehrad Rousta Date: Sun, 15 Dec 2024 20:04:16 +0330 Subject: [PATCH] ci: add github actiona --- .github/workflows/deploy-web.yml | 31 +++++++++++++++++++++++++++++++ package.json | 5 ++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/deploy-web.yml diff --git a/.github/workflows/deploy-web.yml b/.github/workflows/deploy-web.yml new file mode 100644 index 0000000..6a22442 --- /dev/null +++ b/.github/workflows/deploy-web.yml @@ -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 diff --git a/package.json b/package.json index 0140e44..21a330e 100644 --- a/package.json +++ b/package.json @@ -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" }, @@ -242,6 +242,5 @@ ".erb/dll/**" ], "logLevel": "quiet" - }, - "packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228" + } }