Skip to content

Update release.yaml #14

Update release.yaml

Update release.yaml #14

Workflow file for this run

name: ReleaseBuild
on:
workflow_call: # Reusable by other workflows
push:
branches-ignore:
- 'gh-pages'
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout current repo to ./source
uses: actions/checkout@v2
- name: Checkout HL7/fhir-ig-history-template to ./history-template
uses: actions/checkout@v2
with:
repository: HL7/fhir-ig-history-template
path: history-template
- name: Clone DigitalSQR/smart-releases into ./webroot
run: git clone https://github.com/DigitalSQR/smart-releases.git webroot
- name: Checkout FHIR/ig-registry to ./ig-registry
uses: actions/checkout@v2
with:
repository: FHIR/ig-registry
path: ig-registry
- name: Create folder
run: mkdir -p ./fhir-package-cache && chown 1001:127 ./fhir-package-cache
- name: Run publisher command
run: java -jar ./publisher.jar publisher -ig source -package-cache-folder ./fhir-package-cache
- name: Run publisher command for publishing release
run: java -Dfile.encoding=UTF-8 -jar publisher.jar -go-publish -package-cache-folder ./fhir-package-cache -source source -web ./webroot -registry ./ig-registry/fhir-ig-list.json -history ./history-template -templates ./webroot/templates
- name: debug- List dirs
run: find . -type d
- name: Deploy main
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./webroot # The folder the action should deploy.
token: ${{ secrets.GITHUB_TOKEN }}
target-folder: website
commit-message: Deploy website preview
single-commit: true
clean: false
# - name: Deploy to gh-pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./webroot
# destination_dir: website