Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install
working-directory: app
- name: Copy web res dist file to '/dist/res'
run: |
mkdir -p dist/res
cp -r ../dist/* dist/res/
working-directory: app
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Build Server
run: |
go build -o dist/Yunhan.exe Yunhan.go
working-directory: app
- name: Log __dirname
run: echo "Directory: $(pwd)"

Check failure on line 45 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
working-directory: app