Skip to content

post: enlightmentware #133

post: enlightmentware

post: enlightmentware #133

Workflow file for this run

on: [pull_request]
name: Preview Website
jobs:
publish:
environment: 'Netlify Deploy'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: 1.21.x
- run: cd blogware && go build
- run: blogware/blogware -output site
- name: Publish
uses: netlify/actions/cli@master
with:
args: deploy --dir=site --alias=pr-${{github.event.number}}
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
- uses: actions-ecosystem/action-create-comment@v1
with:
github_token: ${{ secrets.github_token }}
body: |
Preview Link: https://pr-${{github.event.number}}--infallible-khorana-f0cacc.netlify.app