-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
49 lines (41 loc) · 1.51 KB
/
deploy-netlify.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: 'Netlify Deploy - Release'
on:
release:
types: ['published']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
statuses: write
jobs:
deploy:
name: 'Deploy Release'
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install deps and audit
uses: ./.github/actions/pnpm
- name: Build typdoc site
run: pnpm docs:all
- uses: jsmrcaga/[email protected]
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_DEPLOY_MESSAGE: "Prod deploy v${{ github.ref }}"
NETLIFY_DEPLOY_TO_PROD: true
install_command: "echo Skipping installing the dependencies"
build_command: "echo Skipping building the web files"
debug: true
build_directory: "site"
monorepo_package: "electron-builder"
# Creates a status check with link to preview
- name: Set Status check on commit
uses: guibranco/[email protected]
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
state: success
context: Netlify Documentation Site preview
description: Production - Click "details"
target_url: ${{ env.NETLIFY_PREVIEW_URL }}
sha: ${{github.event.pull_request.head.sha || github.sha}}