Skip to content

Init project

Init project #1

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Golang caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Install Go
if: success()
uses: actions/setup-go@v2
with:
go-version: 1.22.x
- name: Install and Build 🔧
run: make build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: public