forked from MultiQC/MultiQC
-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (45 loc) · 1.4 KB
/
docs_preview.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
50
51
52
53
name: Docs - Netlify preview
on:
pull_request:
paths: ["docs/**"]
jobs:
deploy:
name: "Deploy preview"
runs-on: ubuntu-latest
if: github.repository == 'ewels/MultiQC'
defaults:
run:
working-directory: ./MultiQC_website
permissions:
pull-requests: write
steps:
- name: Checkout MultiQC repo
uses: actions/checkout@v3
with:
path: ./MultiQC
- name: Checkout MultiQC website repo
uses: actions/checkout@v3
with:
repository: MultiQC/website
path: ./MultiQC_website
- name: Set up Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install npm deps
run: npm install
- name: Build website
run: npm run build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2
with:
publish-dir: "./MultiQC_website/dist"
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "MultiQC PR #${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}"
alias: mqc-pr-${{ github.event.pull_request.number }}
enable-commit-comment: false
enable-commit-status: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1