Skip to content

add page build and publish workflow #1

add page build and publish workflow

add page build and publish workflow #1

Workflow file for this run

name: Build and Publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubunto-latest
- name: checkout src

Check failure on line 11 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yaml

Invalid workflow file

You have an error in your yaml syntax on line 11
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: build angular
working-directory: .
run: npm install && npm run build:prod
- name: publish site
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/browser
branch: live
token: ${{ secrets.PUBLISH_TOKEN }}