Skip to content

Biospecimen

Biospecimen #54

Workflow file for this run

name: πŸš€ Deploy IG Site Preview
on:
pull_request:
types: [opened, reopened, edited, synchronize]
jobs:
publish:
name: πŸ“ Preview Implementation Guide
runs-on: ubuntu-22.04
steps:
- name: πŸ‘©β€πŸ’» Checkout code
uses: actions/checkout@v3
- name: πŸ›  Set up OpenJDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: πŸ›  Set up Jekyll
run: |
sudo apt-get update
sudo apt-get -y install ruby-full build-essential zlib1g-dev
sudo gem install jekyll bundler
- name: πŸ›  Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: πŸ›  Install SUSHI and add FSH definitions
run: |
npm install -g fsh-sushi
sushi .
- name: ⬆️ Update IG publisher
run: |
sudo apt-get -y install iputils-ping
chmod +x ./_updatePublisher.sh
./_updatePublisher.sh -y
- name: 🚦 Validate IG
run: |
chmod +x ./_genonce.sh
./_genonce.sh
- name: πŸš€ Deploy to Netlify
uses: nwtgck/[email protected]
id: netlify
with:
publish-dir: "./output"
deploy-message: "πŸš€ Deploy from GitHub Actions"
github-token: ${{ secrets.GITHUB_TOKEN }}
alias: deploy-preview-${{ github.event.number }}
fails-without-credentials: true
enable-pull-request-comment: false
enable-commit-comment: false
enable-commit-status: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- name: 🏷 PR Deploy Preview Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
message: |
### :rocket: IG Site Preview Deployed
Latest commit: ${{ github.event.pull_request.head.sha }}
[View deployment](${{ steps.netlify.outputs.deploy-url }})