Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
efinauri committed Jun 27, 2024
2 parents 1a864c8 + 36e49d2 commit af6b712
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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

0 comments on commit af6b712

Please sign in to comment.