Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/aces/gbc_website
Browse files Browse the repository at this point in the history
  • Loading branch information
3design committed Oct 1, 2024
2 parents 049a4dc + 6e7c631 commit 75bbf17
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Deploy

on:
push:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ['20.9.0']

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install packages
run: npm ci

- name: Run npm build
run: npm run build

- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./dist

0 comments on commit 75bbf17

Please sign in to comment.