Re-enable release file generation
This commit is contained in:
12
.github/workflows/gh-pages.yml
vendored
12
.github/workflows/gh-pages.yml
vendored
@@ -68,6 +68,18 @@ jobs:
|
|||||||
- name: Build release project
|
- name: Build release project
|
||||||
run: flutter build web --base-href "/IIITB_Menu/" --web-renderer html
|
run: flutter build web --base-href "/IIITB_Menu/" --web-renderer html
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: marvinpinto/action-automatic-releases@v1.2.1
|
||||||
|
with:
|
||||||
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
automatic_release_tag: "latest"
|
||||||
|
prerelease: false
|
||||||
|
draft: false
|
||||||
|
title: "Bi-Weekly Release"
|
||||||
|
files: |
|
||||||
|
./scripts/out.txt
|
||||||
|
./scripts/out.json
|
||||||
|
|
||||||
- name: Upload production-ready build files
|
- name: Upload production-ready build files
|
||||||
uses: actions/upload-artifact@v3.1.2
|
uses: actions/upload-artifact@v3.1.2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -74,5 +74,7 @@ if __name__ == "__main__":
|
|||||||
with open("data.dart", "w+") as dataWriter:
|
with open("data.dart", "w+") as dataWriter:
|
||||||
allData = "String data = r'" + json.dumps(finalData) + "';"
|
allData = "String data = r'" + json.dumps(finalData) + "';"
|
||||||
dataWriter.write(allData)
|
dataWriter.write(allData)
|
||||||
# with open("out.txt", "w+") as hashWriter:
|
with open("out.json", "w+") as jsonWriter:
|
||||||
# hashWriter.write(hashlib.md5(json.dumps(finalData).encode("utf-8")).hexdigest())
|
json.dump(finalData, jsonWriter)
|
||||||
|
with open("out.txt", "w+") as hashWriter:
|
||||||
|
hashWriter.write(hashlib.md5(json.dumps(finalData).encode("utf-8")).hexdigest())
|
||||||
|
|||||||
Reference in New Issue
Block a user