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 scripts #187

Merged
merged 2 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
29 changes: 16 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# This workflow will setup IG publisher, run sushi
# It should also publish results (TBD)
# This workflow sets up and runs the IG publisher and publishes the results to GitHub Pages

name: Node.js CI

on:
push:
branches: [ "master" ]
branches: [ master ]
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# Set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
Expand All @@ -28,17 +27,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup IG publisher
run: docker compose run runner bash -c "./_updatePublisher.sh --yes"
- name: Generate
run: docker compose run runner bash -c "./_genonce.sh"
- uses: actions/checkout@v4
- name: Update the Docker image to the latest publisher
uses: docker://hl7fhir/ig-publisher-base:latest
with:
args: ./_updatePublisher.sh --yes
- name: Run the IG publisher
uses: docker://hl7fhir/ig-publisher-base:latest
with:
args: ./_genonce.sh
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/configure-pages@v5
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: './output'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
12 changes: 9 additions & 3 deletions .github/workflows/pr-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Run sushi
run: docker compose run runner bash -c "sushi"
- uses: actions/checkout@v4
- name: Update the Docker image to the latest publisher
uses: docker://hl7fhir/ig-publisher-base:latest
with:
args: ./_updatePublisher.sh --yes
- name: Run the IG publisher
uses: docker://hl7fhir/ig-publisher-base:latest
with:
args: ./_genonce.sh