Workflow fix (#2136)
Signed-off-by: George Araújo <george.gcac@gmail.com>
This commit is contained in:
parent
f69d99a2ab
commit
2492ab389b
|
|
@ -47,7 +47,6 @@ jobs:
|
|||
- name: Install and Build 🔧
|
||||
run: |
|
||||
pip3 install --upgrade jupyter
|
||||
npm install -g mermaid.cli
|
||||
export JEKYLL_ENV=production
|
||||
bundle exec jekyll build --lsi
|
||||
- name: Purge unused CSS 🧹
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ jobs:
|
|||
- name: Install and Build 🔧
|
||||
run: |
|
||||
pip3 install --upgrade jupyter
|
||||
npm install -g mermaid.cli
|
||||
export JEKYLL_ENV=production
|
||||
bundle exec jekyll build --lsi
|
||||
- name: Purge unused CSS 🧹
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ on:
|
|||
- "!.github/workflows/deploy-docker-tag.yml"
|
||||
- "!.github/workflows/deploy-image.yml"
|
||||
- "!.github/workflows/docker-slim.yml"
|
||||
- "!.github/workflows/lighthouse-badger.yml"
|
||||
- "!.github/workflows/prettier.yml"
|
||||
pull_request:
|
||||
branches:
|
||||
|
|
@ -32,6 +33,7 @@ on:
|
|||
- "!.github/workflows/deploy-docker-tag.yml"
|
||||
- "!.github/workflows/deploy-image.yml"
|
||||
- "!.github/workflows/docker-slim.yml"
|
||||
- "!.github/workflows/lighthouse-badger.yml"
|
||||
- "!.github/workflows/prettier.yml"
|
||||
|
||||
jobs:
|
||||
|
|
|
|||
|
|
@ -1,9 +1,42 @@
|
|||
name: Deploy site
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [Check for broken links]
|
||||
types: [completed]
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
paths:
|
||||
- "assets/**"
|
||||
- "**.html"
|
||||
- "**.js"
|
||||
- "**.liquid"
|
||||
- "**/*.md"
|
||||
- "**.yml"
|
||||
- "!.github/workflows/axe.yml"
|
||||
- "!.github/workflows/broken-links.yml"
|
||||
- "!.github/workflows/deploy-docker-tag.yml"
|
||||
- "!.github/workflows/deploy-image.yml"
|
||||
- "!.github/workflows/docker-slim.yml"
|
||||
- "!.github/workflows/lighthouse-badger.yml"
|
||||
- "!.github/workflows/prettier.yml"
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
paths:
|
||||
- "assets/**"
|
||||
- "**.html"
|
||||
- "**.js"
|
||||
- "**.liquid"
|
||||
- "**/*.md"
|
||||
- "**.yml"
|
||||
- "!.github/workflows/axe.yml"
|
||||
- "!.github/workflows/broken-links.yml"
|
||||
- "!.github/workflows/deploy-docker-tag.yml"
|
||||
- "!.github/workflows/deploy-image.yml"
|
||||
- "!.github/workflows/docker-slim.yml"
|
||||
- "!.github/workflows/lighthouse-badger.yml"
|
||||
- "!.github/workflows/prettier.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
|
@ -11,8 +44,6 @@ permissions:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-based-on-the-conclusion-of-another-workflow
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
|
||||
# available images: https://github.com/actions/runner-images#available-images
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
@ -33,7 +64,6 @@ jobs:
|
|||
- name: Install and Build 🔧
|
||||
run: |
|
||||
pip3 install --upgrade jupyter
|
||||
npm install -g mermaid.cli
|
||||
export JEKYLL_ENV=production
|
||||
bundle exec jekyll build --lsi
|
||||
- name: Purge unused CSS 🧹
|
||||
|
|
|
|||
Loading…
Reference in New Issue