Skip to content

update workflow

update workflow #3

Workflow file for this run

name: Build and Deploy
on:
workflow_dispatch:
branches:
- main
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install packages
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Build
uses: borales/actions-yarn@v4
with:
cmd: build
- name: create CNAME
run: |
echo "logo-gen.compositecomputer.club" >> dist/CNAME
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
BRANCH: gh-pages
FOLDER: dist