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

Update workflow #86

Merged
merged 9 commits into from
Jun 6, 2024
45 changes: 11 additions & 34 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 with content (no deployment)

on:
push:
Expand All @@ -12,33 +9,13 @@ on:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout NEBULA
uses: actions/checkout@v4
with:
repository: esciencecenter-digital-skills/NEBULA
ref: v0.4.2
path: ./NEBULA

- name: Checkout content
uses: actions/checkout@v4
with:
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'
cache-dependency-path: './NEBULA/package-lock.json'
- run: |
cd NEBULA
npm ci
- run: |
cd NEBULA
npm run build
deploy_with_NEBULA:
permissions:
contents: write
uses: esciencecenter-digital-skills/NEBULA/.github/workflows/[email protected]
with:
content_organization: ${{ github.repository_owner}}
content_repository: ${{ github.event.repository.name }}
content_ref: ${{ github.sha }}
nebula_ref: v1.0.0
deploy_to_ghpages: false
21 changes: 10 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Deploy to gh-pages

on:
[release, workflow_dispatch]
env:
NUXT_APP_CDN_URL: https://esciencecenter-digital-skills.github.io/research-software-support
release:
types: [published]
workflow_dispatch:

jobs:
deploy_with_NEBULA:
permissions:
contents: write
uses: esciencecenter-digital-skills/NEBULA/.github/workflows/deploy.yml@v0.4.0
uses: esciencecenter-digital-skills/NEBULA/.github/workflows/deploy.yml@v1.0.0
with:
content_organization: esciencecenter-digital-skills
content_repository: research-software-support
content_ref: main
base_url: research-software-support
nebula_ref: v0.4.2


content_organization: ${{ github.repository_owner}}
content_repository: ${{ github.event.repository.name }}
content_ref: ${{ github.sha }}
nebula_ref: v1.0.0
deploy_to_ghpages: true
Loading