update gh-pages to remove unused folder #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
# Install .NET runtime | ||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '6.x.x' | ||
# Install Java runtime (only needed if you want to run the offical HL7 Java validator) | ||
- name: Setup Java JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'microsoft' | ||
java-version: '17' | ||
- name : firely | ||
run : dotnet tool install --global Firely.Terminal --version 3.0.0 | ||
- name: Check Firely Terminal Version | ||
run: | | ||
CHECK_FIRELY_TERMINAL_VERSION=$(fhir -v | tr '\n' ' ') # Print everything in a single line | ||
echo "FIRELY_TERMINAL_VERSION: $CHECK_FIRELY_TERMINAL_VERSION" | ||
- name: Run bake ans.annuaire.fhir.r4 | ||
run: | | ||
fhir install ans.annuaire.fhir.r4 0.2.0 | ||
fhir bake --package ans.annuaire.fhir.r4 | ||
- name: Run bake hl7.fhir.fr.core | ||
run: | | ||
fhir install hl7.fhir.fr.core 1.1.0 | ||
fhir bake --package hl7.fhir.fr.core | ||
- 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: 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 -ig . | ||
- name: Get branch names | ||
id: branch-name | ||
uses: tj-actions/[email protected] | ||
- name: show active branches | ||
run: | | ||
echo ig/${{ steps.branch-name.outputs.current_branch }} | ||
# 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 }}' |