Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c2f170b

Browse filesBrowse files
authored
ci.yml: Add "Netlify Preview" step
1 parent 249c1ae commit c2f170b
Copy full SHA for c2f170b

File tree

1 file changed

+12
-0
lines changed
Filter options

1 file changed

+12
-0
lines changed

‎.github/workflows/ci.yml

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+12Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.