5 Commits

Author SHA1 Message Date
YourKalamity
0541727424 update another typo 2020-12-18 18:16:35 +00:00
YourKalamity
be1c9bfb18 Fix typo 2020-12-18 18:08:59 +00:00
Kalam :p
610f1cea18 Update executables.yml 2020-12-18 17:56:33 +00:00
Kalam :p
4f1e6d3da3 Update executables.yml 2020-12-18 17:48:52 +00:00
Kalam :p
3d2a4aeb98 Update executables.yml 2020-12-18 17:47:45 +00:00

View File

@@ -2,13 +2,13 @@ name: Compile into Executables
on: on:
release: release:
types: [created] types: [published]
# ######################################################################################
# Based off of : # Based off of :
# https://github.com/mondul/HiyaCFW-Helper/blob/master/.github/workflows/make-dist.yml # https://github.com/mondul/HiyaCFW-Helper/blob/master/.github/workflows/make-dist.yml
# Thanks to Epicpkmn11 for helping with this # Thanks to Epicpkmn11 for helping with this
# ######################################################################################
jobs: jobs:
windows: windows:
@@ -31,21 +31,12 @@ jobs:
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Make binary - name: Make binary
run: | run: |
pyinstaller --onefile ^ pyinstaller --onefile --add-data "certifi;certifi" --add-data "requests;requests" --add-data "urllib3;urllib3" --add-data "lazy.ico;." --add-data "chardet;chardet" --icon "lazy.ico" --console --name "lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}" main.py
--add-data "certifi;certifi" ^
--add-data "requests;requests" ^
--add-data "urllib3;urllib3" ^
--add-data "lazy.ico;." ^
--add-data "chardet;chardet" ^
--icon "lazy.ico" ^
--console ^
--name "lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}" ^
main.py
cd dist cd dist
- name: Publish builds - name: Publish builds
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
path: lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}.exe path: dist/lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}.exe
name: windows name: windows
python: python:
@@ -76,7 +67,7 @@ jobs:
needs: [windows,python] needs: [windows,python]
steps: steps:
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifacts@v2 uses: actions/download-artifact@v2
- name: Upload to Release - name: Upload to Release
run: | run: |
ID=$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH) ID=$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH)