Skip to content

update to latest peaceiris/actions-gh-pages action #3

update to latest peaceiris/actions-gh-pages action

update to latest peaceiris/actions-gh-pages action #3

Workflow file for this run

name: Build and deploy to Github Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
name: Build and deploy
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build
path: ./dist/c8y-os-repo-overview/
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/c8y-os-repo-overview/