Skip to content

Create deploy.yml

Create deploy.yml #1

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: Install Go dependencies
run: go mod download
- name: Build the Go application
run: go build -o yugioh-browser
- name: Run the Go application to generate static files
run: |
./yugioh-browser
env:
PORT: 8088
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./deploy