Skip to content

Commit

Permalink
Fix Pre-Relese Build
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-richard7 committed Oct 3, 2024
1 parent 9b9409c commit f9118fc
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- "dev"
tags:
- "v*"
jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -13,7 +15,7 @@ jobs:
- os: macos-latest
TARGET: macos
CMD_BUILD: >
nuitka --onefile main.py --output-dir=output --output-filename="JioTV" --remove-output --disable-ccache &&
nuitka --onefile main.py --output-dir=output --output-filename="JioTV" --remove-output --assume-yes-for-downloads &&
cp -r templates output &&
cp -r data output &&
cp -r static output &&
Expand All @@ -23,7 +25,7 @@ jobs:
- os: windows-latest
TARGET: windows
CMD_BUILD: >
nuitka --windows-icon-from-ico=resources\JioTV_logo.ico --onefile main.py --output-dir=output --output-filename="JioTV.exe" --remove-output --disable-ccache --follow-imports --assume-yes-for-downloads &&
nuitka --windows-icon-from-ico=resources\JioTV_logo.ico --onefile main.py --output-dir=output --output-filename="JioTV.exe" --remove-output --follow-imports --assume-yes-for-downloads &&
cp -r templates output &&
cp -r data output &&
cp -r static output &&
Expand All @@ -34,7 +36,7 @@ jobs:
- os: ubuntu-latest
TARGET: linux
CMD_BUILD: >
nuitka --onefile main.py --output-dir=output --output-filename="JioTV" --remove-output --disable-ccache &&
nuitka --onefile main.py --output-dir=output --output-filename="JioTV" --remove-output --assume-yes-for-downloads &&
cp -r templates output &&
cp -r data output &&
cp -r static output &&
Expand All @@ -57,8 +59,13 @@ jobs:
run: ${{matrix.CMD_BUILD}}
- name: Generate tag
id: gen_tag
run: |
echo "tag=${{ github.ref_name }}.$(date +'%Y.%m.%d.%H.%M.%s')" >> $GITHUB_OUTPUT
uses: actions/github-script@v6
with:
script: |
const now = new Date();
const tag = `dev.${{ github.ref_name }}.${now.getUTCFullYear()}.${(now.getUTCMonth()+1).toString().padStart(2, '0')}.${now.getUTCDate().toString().padStart(2, '0')}.${now.getUTCHours().toString().padStart(2, '0')}.${now.getUTCMinutes().toString().padStart(2, '0')}.${now.getUTCSeconds().toString().padStart(2, '0')}`;
core.setOutput('tag', tag);
- name: Create Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit f9118fc

Please sign in to comment.