Re-enable release file generation

This commit is contained in:
2023-09-06 19:27:44 +05:30
parent c74876ecb8
commit 2e42d72d49
2 changed files with 16 additions and 2 deletions

View File

@@ -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:

View File

@@ -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())