Skip to content

docs: copy

docs: copy #277

Workflow file for this run

name: release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: build docs site
run: make ssg
- name: publish to pgs
uses: picosh/pgs-action@v3
with:
user: pico
key: ${{ secrets.PRIVATE_KEY }}
src: './public/'
project: "docs-${{ steps.vars.outputs.sha_short }}"
promote: "docs-prod"
retain: "docs-"
retain_num: 1