Skip to content

Create web artifacts to publish automatically. #8

Create web artifacts to publish automatically.

Create web artifacts to publish automatically. #8

Workflow file for this run

name: Deploy to Github Pages
run-name: Create web artifacts to publish automatically.
permissions:
contents: read
pages: write
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Check out Repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Installing the project dependencies
run: npm ci
- name: Building the project
run: npm run build
- name: Upload the website
uses: actions/upload-artifact@v4
with:
name: test-artifact
path: out/renderer/
if-no-files-found: error
overwrite: true
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
folder: out/renderer/
repository-name: wolfman2000/wolfman2000.github.io