mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
updated step conditions
This commit is contained in:
parent
8fa37cc9be
commit
7ae3014e06
15
.github/workflows/manifest.yml
vendored
15
.github/workflows/manifest.yml
vendored
@ -38,43 +38,56 @@ jobs:
|
||||
run: mkdir deploy; mkdir deploy/manifests; mkdir deploy/manifests/main deploy/manifests/latest deploy/manifests/devel
|
||||
# Generate manifest + shields files for main branch
|
||||
- name: Checkout main
|
||||
id: checkout_main
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: 'main'
|
||||
clean: false
|
||||
- name: Generate manifest and shields for main branch
|
||||
id: manifest_main
|
||||
if: steps.checkout_main.outcome == 'success'
|
||||
run: python imgen.py shields
|
||||
- name: Save main's manifest
|
||||
if: steps.manifest_main.outcome == 'success'
|
||||
run: mv install_manifest.json deploy/manifests/main
|
||||
# Generate manifest for latest branch
|
||||
- name: Checkout latest
|
||||
id: checkout_latest
|
||||
if: success() || failure()
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: 'latest'
|
||||
clean: false
|
||||
- name: Generate manifest for latest
|
||||
id: manifest_latest
|
||||
if: steps.checkout_latest.outcome == 'success'
|
||||
run: python imgen.py
|
||||
- name: Save latest's manifest
|
||||
if: steps.manifest_latest.outcome == 'success'
|
||||
run: mv install_manifest.json deploy/manifests/latest
|
||||
# Generate manifest for devel branch
|
||||
- name: Checkout devel
|
||||
id: checkout_devel
|
||||
if: success() || failure()
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: 'devel'
|
||||
clean: false
|
||||
- name: Generate manifest for devel
|
||||
id: manifest_devel
|
||||
if: steps.checkout_devel.outcome == 'success'
|
||||
run: python imgen.py
|
||||
- name: Save devel's manifest
|
||||
if: steps.manifest_devel.outcome == 'success'
|
||||
run: mv install_manifest.json deploy/manifests/devel
|
||||
# All artifacts ready now, upload deploy directory
|
||||
- name: Upload artifacts
|
||||
if: success() || failure()
|
||||
if: steps.manifest_main.outcome == 'success' || steps.manifest_latest.outcome == 'success' || steps.manifest_devel.outcome == 'success'
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
# Upload manifest JSON
|
||||
path: 'deploy/'
|
||||
- name: Deploy to GitHub Pages
|
||||
if: steps.manifest_main.outcome == 'success' || steps.manifest_latest.outcome == 'success' || steps.manifest_devel.outcome == 'success'
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v2
|
||||
|
Loading…
Reference in New Issue
Block a user