Skip to content

Commit

Permalink
deploy reproschema2fhir IG
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan8456 committed Feb 16, 2024
1 parent e215b85 commit 5e32e37
Showing 1 changed file with 23 additions and 28 deletions.
51 changes: 23 additions & 28 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,32 +83,27 @@ jobs:
sushi .
# - name: "Download the IG Publisher"
# shell: bash
# run: |
# mkdir ./input-cache
# curl -sS -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o ./input-cache/publisher.jar
# chmod +x ./input-cache/publisher.jar
# # Download the IG Publisher
# - name: "Create IG"
# shell: bash
# run: |
# java -jar -Xms4096M -Xmx6144M -XX:NewRatio=1 -XX:-UseAdaptiveSizePolicy input-cache/publisher.jar ig.ini
# mkdir -p ./git-output/vbai-fhir
# cp -r ./output/* ./git-output/vbai-fhir
# echo "Kind Lab GitHub Pages for external webpages." > ./git-output/README.md

- name: "Download the IG Publisher"
shell: bash
run: |
mkdir ./input-cache
curl -sS -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o ./input-cache/publisher.jar
chmod +x ./input-cache/publisher.jar
- name: "Create IG"
shell: bash
run: |
java -jar -Xms4096M -Xmx6144M -XX:NewRatio=1 -XX:-UseAdaptiveSizePolicy input-cache/publisher.jar ig.ini

# # Deploy IG
# - name: Deploy to external repository
# uses: cpina/github-action-push-to-another-repository@main
# env:
# SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
# with:
# source-directory: 'git-output'
# destination-github-username: 'kind-lab'
# destination-repository-name: 'kind-lab.github.io'



- name: "Deploy to kind-lab.github.io"
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global credential.helper cache
git clone --depth 1 https://${{ secrets.GH_VBAI_PAT }}@github.com/kind-lab/kind-lab.github.io website
cd website
git rm -r vbai-fhir
mv ../output website/vbai-fhir
git add vbai-fhir
git commit -a -m "$(date): update vbai-fhir"
git push

0 comments on commit 5e32e37

Please sign in to comment.