Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust the check and dummy-deployment workflow to use the new reusable workflow with optional deployment #55

Merged
merged 4 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: main
base_url: NEBULA
nebula_ref: ${{ github.sha }}
deploy_to_ghpages: false
8 changes: 6 additions & 2 deletions .github/workflows/deploy_dummy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ on:
pull_request:
branches:
- main

jobs:
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
content_repository: NEBULA-content-template
content_ref: v1.0.0
base_url: NEBULA
nebula_ref: ${{ github.sha }}
deploy_to_ghpages: true



Loading