Skip to content

Commit

Permalink
update check and deploy_dummy to use then default deploy.yml workflow…
Browse files Browse the repository at this point in the history
… with deployment option
  • Loading branch information
JaroCamphuijsen committed Jun 5, 2024
1 parent 0eace46 commit 874c720
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 28 deletions.
39 changes: 12 additions & 27 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Clean install and build check (no deploy) with dummy content
name: Clean install and build check (no deploy) with specified content

on:
push:
Expand All @@ -12,26 +9,14 @@ on:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Checkout content
uses: actions/checkout@v4
with:
repository: esciencecenter-digital-skills/NEBULA-content-template
ref: main
path: ./content

- name: Set content path environment variable
run: echo "CONTENT_PATH=${PWD}/content" >> $GITHUB_ENV


- name: Run CI on Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- run: npm ci
- run: npm run build
deploy_with_NEBULA:
permissions:
contents: write
uses: ./.github/workflows/deploy.yml
with:
content_organization: esciencecenter-digital-skills
content_repository: research-software-support
content_ref: NEBULA-update
base_url: NEBULA
nebula_ref: ${{ github.sha }}
deploy_to_ghpages: false
6 changes: 5 additions & 1 deletion .github/workflows/deploy_dummy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- main

jobs:
deploy_with_NEBULA:
permissions:
Expand All @@ -15,7 +16,10 @@ jobs:
with:
content_organization: esciencecenter-digital-skills
content_repository: research-software-support
content_ref: NEBULA-update
content_ref: main
base_url: NEBULA
nebula_ref: ${{ github.sha }}
deploy_to_ghpages: true



0 comments on commit 874c720

Please sign in to comment.