Skip to content

ghpages

ghpages #215

Workflow file for this run

name: ghpages
on:
workflow_call:
workflow_dispatch:
# The following jobs are equal for all IGs and can be moved to a common composite-action if 'uses'-support is added, see:
# https://github.com/actions/runner/blob/main/docs/adrs/1144-composite-actions.md
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install modules
run: npm install -g fsh-sushi
- name: Run sushi
run: sushi .
# Downloads the newest version of the IG Publisher, this could probable be cached.
- name: 📥 Download IG Publisher
run: wget -q https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar
- name: Install modules
run: npm install -g fsh-sushi
- name: Build and test with Rake
run: |
sudo apt-get install ruby-full
sudo gem install jekyll
# Builds the HTML page for the IG.
- name: 🏃‍♂️ Run IG Publisher
run : java -Xmx8192m -jar publisher.jar publisher -ig . -publish https://github.io/
- name: Setup Python # Set Python version
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install saxon
run : pip install saxonche
- name: Run script python
run: python ./tools/transform.py './output' './tools/xsl'
- name: Get branch names
id: branch-name
uses: tj-actions/[email protected]
# Publishes the HTML page to a seperate branch in order to host it using GitHub-Pages.
# This will overwrite the currently published HTML page.
- name: 🚀 Deploy to GitHub-Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
destination_dir: ig/${{ steps.branch-name.outputs.current_branch }}
exclude_assets: '**.zip,**.tgz,**.pack'
commit_message: ' ${{ github.event.head_commit.message }}'