Nextflow website build #1062
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: 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}} |