Skip to content

chore(deps): update jamesives/github-pages-deploy-action action to v4… #450

chore(deps): update jamesives/github-pages-deploy-action action to v4…

chore(deps): update jamesives/github-pages-deploy-action action to v4… #450

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
- beta
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install and Build
run: |
npm ci --production=false # We also need to install dev dependencies for the build
npm run build
env:
REPOSITORY_NAME: ${{ github.event.repository.name }}
NODE_ENV: production
- name: Create archive as a preparation for the release
run: zip -r release.zip dist/**
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Release to GitHub
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy 🚀
if: ${{ github.ref == 'refs/heads/main' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
git-config-name: Carsten Hoffmann
git-config-email: [email protected]