diff --git a/.github/workflows/shields.yml b/.github/workflows/shields.yml index eae17a2..65cbe25 100644 --- a/.github/workflows/shields.yml +++ b/.github/workflows/shields.yml @@ -37,12 +37,11 @@ jobs: uses: actions/setup-python@v3.1.3 - run: python imgen.py shields - run: ls - - run: cat shields-*.json - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: # Upload shields JSON - path: shields-*.json + path: **-shields.json - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2 diff --git a/imgen.py b/imgen.py index 3da13d2..b1b3b8b 100644 --- a/imgen.py +++ b/imgen.py @@ -111,7 +111,7 @@ f.close() if sys.argv[1] == "shields": # write all the JSON files for shields.io for key, version in final_manifest["versions"].items(): - f = open("shields-" + key + ".json", "w") + f = open(key + "-shields.json", "w") if version.find("alpha") >= 0: color = "yellow"