New module: My Module #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |