mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
possible fix for actions 6
This commit is contained in:
parent
2b23dac1fe
commit
6b8b38b8cb
7
.github/workflows/shields.yml
vendored
7
.github/workflows/shields.yml
vendored
@ -35,13 +35,14 @@ jobs:
|
|||||||
uses: actions/configure-pages@v3
|
uses: actions/configure-pages@v3
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v3.1.3
|
uses: actions/setup-python@v3.1.3
|
||||||
- run: python imgen.py shields
|
- run: mkdir shields
|
||||||
- run: ls
|
- run: python imgen.py 0
|
||||||
|
- run: ls shields/
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
# Upload shields JSON
|
# Upload shields JSON
|
||||||
path: ./**-shields.json
|
path: shields/*
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v2
|
uses: actions/deploy-pages@v2
|
||||||
|
2
imgen.py
2
imgen.py
@ -111,7 +111,7 @@ f.close()
|
|||||||
if sys.argv[1] == "shields":
|
if sys.argv[1] == "shields":
|
||||||
# write all the JSON files for shields.io
|
# write all the JSON files for shields.io
|
||||||
for key, version in final_manifest["versions"].items():
|
for key, version in final_manifest["versions"].items():
|
||||||
f = open(key + "-shields.json", "w")
|
f = open("shields/" + key + ".json", "w")
|
||||||
|
|
||||||
if version.find("alpha") >= 0:
|
if version.find("alpha") >= 0:
|
||||||
color = "yellow"
|
color = "yellow"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user