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