8000 ci.yml: Add "Netlify Preview" step · sdfgeoff/rust-gamedev.github.io@c2f170b · GitHub
[go: up one dir, main page]

Skip to content

Commit c2f170b

Browse files
authored
ci.yml: Add "Netlify Preview" step
1 parent 249c1ae commit c2f170b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ jobs:
1717
run: curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz
1818
- run: ./zola --version
1919
- run: ./zola build
20+
- name: Netlify Preview
21+
uses: nwtgck/actions-netlify@v1.1
22+
with:
23+
publish-dir: './public'
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
deploy-message: "Deploy from GitHub Actions"
26+
enable-pull-request-comment: true
27+
enable-commit-comment: true
28+
overwrites-pull-request-comment: true
29+
env:
30+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
31+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
2032
- name: Deploy
2133
if: github.ref == 'refs/heads/source'
2234
uses: crazy-max/ghaction-github-pages@v1

0 commit comments

Comments
 (0)
0