Skip to content

Commit

Permalink
Update pages deploy on every commit to main
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Jan 11, 2024
1 parent 123e84f commit 6ed10a8
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,41 @@ name: deploy
on:
push:
branches: [ main ]
tags:
- 'v*'

jobs:
deploy-pages:
name: deploy/pages
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/checkout@v4

- name: Use Node.js from nvmrc
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Install
run: npm ci

- name: Build
run: npm run build

- name: Upload to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist

# publish docker to GitHub registry
deploy-docker:
name: deploy/docker
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

if: ${{ github.event_name == 'push' }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]

steps:
- name: Login to GitHub Container Registry
Expand Down

0 comments on commit 6ed10a8

Please # to comment.