diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f8cc95..11cb847 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,14 +1,13 @@ -# This workflow sets up the IG publisher in a Docker container, runs sushi conversions, and -# publishes the results with GitHub Pages. +# 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 @@ -28,23 +27,21 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Update the image to the latest publisher + - uses: actions/checkout@v4 + - name: Update the Docker image to the latest publisher uses: docker://hl7fhir/ig-publisher-base:latest with: - # Get the latest publisher - don't run the batch script but run the line directly - args: curl -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o ./input-cache/publisher.jar --create-dirs + args: ./_updatePublisher.sh --yes - name: Run the IG publisher uses: docker://hl7fhir/ig-publisher-base:latest with: - # Run the publisher - don't run the batch script but run the line directly - args: java -jar ./input-cache/publisher.jar publisher -ig . + 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 diff --git a/.github/workflows/pr-verification.yml b/.github/workflows/pr-verification.yml new file mode 100644 index 0000000..75b1334 --- /dev/null +++ b/.github/workflows/pr-verification.yml @@ -0,0 +1,21 @@ +name: Pull request verification + +on: + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - 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 diff --git a/_genonce.sh b/_genonce.sh old mode 100644 new mode 100755 diff --git a/_updatePublisher.sh b/_updatePublisher.sh old mode 100644 new mode 100755