Build and deploy Jekyll site #37
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
# Sample workflow for building and deploying a Jekyll site to GitHub Pages | |
name: Build and deploy Jekyll site | |
# π Runs on deployment targeting the default branch | |
on: | |
# push: | |
# branches: [eQ19] | |
workflow_run: | |
types: [completed] #requested | |
workflows: ["pages-build-deployment"] | |
# πͺ Allow only one concurrent deployment across the branches | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
# Sets permissions of the GITHUB_TOKEN | |
permissions: write-all | |
# Sets global environtment variables | |
env: | |
OWNER: ${{ github.repository_owner }} | |
jobs: | |
# Build job | |
github-pages: | |
if: github.event.workflow_run.conclusion == 'success' | |
runs-on: ${{ vars.OWNER != 'FeedMapping' && 'ubuntu-latest' || 'windows-latest' }} | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: π Build on Linux | |
if: runner.os == 'Linux' | |
uses: eq19/feed@v2 | |
with: | |
pre_build_commands: 'make build' | |
token: ${{ secrets.JEKYLL_GITHUB_TOKEN }} | |
- name: π Build on Windows | |
if: runner.os == 'Windows' | |
uses: eq19/maps@v1 | |
id: stepid | |
with: | |
dotnet-version: '3.1.x' |