Skip to content

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

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

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

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/checkout@v4.1.7
- uses: actions/setup-node@v4
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@v4
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/github-pages-deploy-action@v4.6.8
with:
branch: gh-pages
folder: dist
git-config-name: Carsten Hoffmann
git-config-email: carsten.c.hoffmann@deutschebahn.com