Skip to content

Merge pull request #2 from package-url/dependabot/github_actions/acti… #9

Merge pull request #2 from package-url/dependabot/github_actions/acti…

Merge pull request #2 from package-url/dependabot/github_actions/acti… #9

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist # Change this to your build directory if different