Skip to content

Commit

Permalink
- Init workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ParticleG committed Oct 11, 2024
1 parent 1b68184 commit 2a55756
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: NebulaE CI/CD

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-pwa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install Dependencies and Build
run: |
pnpm i
DEPLOY_GITHUB_PAGE=true pnpm run build
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
build_dir: dist/pwa
keep_history: false
target_branch: gh-pages

0 comments on commit 2a55756

Please sign in to comment.