Preview Test #96
Workflow file for this run
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: π 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: 17 | |
- 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: 12 | |
- name: π Install SUSHI and add FSH definitions | |
run: | | |
npm install -g fsh-sushi@^2.10.2 | |
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 }}) | |