Skip to content

fix: deploy github pages #6

fix: deploy github pages

fix: deploy github pages #6

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '^1.17'
- name: Build static content
run: go run ./main.go
- name: Upload HTML artifact
uses: actions/upload-artifact@v2
with:
name: static-content
path: ./index.html
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download HTML artifact
uses: actions/download-artifact@v2
with:
name: static-content
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
with:
artifact_name: "static-content"