docs(pgs): _redirects
copy
#57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pgs-static-site | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
static: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install package | |
run: | | |
sudo apt-get -y install libwebp-dev | |
- 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.20' | |
- name: build pgs site | |
run: make pgs-static pgs-site | |
- name: publish to pgs | |
uses: picosh/pgs-action@main | |
with: | |
user: hey | |
key: ${{ secrets.PRIVATE_KEY }} | |
src: './public/*' | |
project: "pgs-${{ steps.vars.outputs.sha_short }}" | |
promote: "pgs-prod" | |
retain: "pgs-" |