You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
482 B
27 lines
482 B
10 months ago
|
name: CI/CD
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- gh-pages
|
||
|
|
||
|
jobs:
|
||
|
ci-cd:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
- uses: actions/setup-node@v4
|
||
|
with:
|
||
|
node-version: 20
|
||
|
registry-url: https://registry.npmjs.org/
|
||
|
cache: npm
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: npm install
|
||
|
|
||
|
- name: Build and test
|
||
|
run: npm run build
|
||
|
|
||
|
- name: Deploy to GitHub Pages
|
||
|
run: npm run deploy -- -m "Update GitHub Pages"
|