Skip to content

Commit

Permalink
sync up to orcid source and add second project
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesw committed Nov 20, 2024
1 parent e0abac6 commit bbd6056
Show file tree
Hide file tree
Showing 12 changed files with 117 additions and 427 deletions.
185 changes: 0 additions & 185 deletions .github/workflows/bld_all.yml

This file was deleted.

21 changes: 13 additions & 8 deletions .github/workflows/bld_maven.yml → .github/workflows/bld_mvn.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: bld_maven
run-name: bld-{{ inputs.project }}
name: bld_mvn

permissions:
checks: write
Expand Down Expand Up @@ -83,7 +82,13 @@ on:


jobs:
bld_maven:
bld_mvn:
strategy:
matrix:
include:
- project: hello_world
- project: hello_world_2

runs-on: ubuntu-latest
steps:
- name: git-checkout-ref-action
Expand Down Expand Up @@ -167,20 +172,20 @@ jobs:
find . -name '*.war'
find . -name '*.jar'
env:
project: "${{ inputs.project }}"
project: "${{ matrix.project }}"

#
# orcid-web customization
#

- name: setup node for angular static file
if: ${{ inputs.project == 'orcid-web' }}
if: ${{ matrix.project == 'orcid-web' }}
uses: actions/setup-node@v3
with:
node-version: 18.7.0

- name: build angular parts if we are building orcid-web
if: ${{ inputs.project == 'orcid-web' }}
if: ${{ matrix.project == 'orcid-web' }}
run: |
echo "Build angular_orcid_generated.js"
cd orcid-nodejs
Expand Down Expand Up @@ -208,7 +213,7 @@ jobs:
env:
version_tag_numeric: "${{ steps.version.outputs.version_tag_numeric }}"
project: "${{ inputs.project }}"
project: "${{ matrix.project }}"

##################################################################################################################

Expand All @@ -227,5 +232,5 @@ jobs:
ARTIFACT_REPO_PATH: "${{ secrets.ARTIFACT_REPO_PATH }}"
ARTIFACT_USER: "${{ secrets.ARTIFACT_USER }}"
ARTIFACT_PASSWORD: "${{ secrets.ARTIFACT_PASSWORD }}"
project: "${{ inputs.project }}"
project: "${{ matrix.project }}"

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build_test_release_tag
name: bld_test_rel_tag

on:
workflow_call:
Expand All @@ -18,6 +18,11 @@ on:
required: false
default: "default"
type: string
rel_tag:
description: Whether to tag the code
type: boolean
required: false
default: true

workflow_dispatch:
inputs:
Expand All @@ -42,7 +47,11 @@ on:
required: false
default: "default_branch"
type: string

rel_tag:
description: Whether to tag the code
type: boolean
required: false
default: true

# cancel running job if another commit comes in
concurrency:
Expand All @@ -54,8 +63,8 @@ jobs:
lint:
uses: ./.github/workflows/lint.yml

mvn_test:
uses: ./.github/workflows/mvn_test.yml
test_mvn:
uses: ./.github/workflows/test_mvn.yml
with:
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
Expand All @@ -65,12 +74,12 @@ jobs:
needs:
- lint
##############################################################################
bld_all:
uses: ./.github/workflows/bld_all.yml
bld_mvn:
uses: ./.github/workflows/bld_mvn.yml
secrets: inherit # pass all secrets for uploading assets
needs:
- lint
- mvn_test
- test_mvn
permissions:
checks: write
contents: read
Expand All @@ -87,7 +96,8 @@ jobs:

rel_tag:
uses: ./.github/workflows/rel_tag.yml
needs: bld_all
needs: bld_mvn
if: ${{ inputs.rel_tag }}
with:
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
Expand Down
Loading

0 comments on commit bbd6056

Please sign in to comment.