-
Notifications
You must be signed in to change notification settings - Fork 68
48 lines (41 loc) · 1.08 KB
/
build.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
name: Nextflow website build
# read more here
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#on
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
schedule:
- cron: "0 1 * * *" # Daily, 1am
jobs:
build:
name: Nextflow website build
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-20.04
timeout-minutes: 10
strategy:
fail-fast: false
steps:
- name: Environment
run: env | sort
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install website deps
run: npm ci
- name: Build website
run: npm run build
- name: Publish website
if: github.event_name != 'pull_request'
run: |
make publish
make invalidate
env:
AWS_EC2_METADATA_DISABLED: true
AWS_ACCESS_KEY_ID: ${{secrets.NXF_AWS_ACCESS}}
AWS_SECRET_ACCESS_KEY: ${{secrets.NXF_AWS_SECRET}}