-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (26 loc) · 862 Bytes
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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