Update rsync example to match SCP example and correct pico.sh address… #362
This file contains hidden or 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: 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 |