Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kuriyota authored Aug 1, 2024
1 parent a468fd3 commit 6714be9
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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)"
working-directory: app

0 comments on commit 6714be9

Please sign in to comment.