Skip to content

Commit

Permalink
fix wrong directory detection for release action (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
KTrain5169 authored Oct 5, 2024
1 parent ee38adb commit e5c9cfa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: List dist directory # debug
run: ls -R dist

- name: PyInstaller (CLI) # debug
- name: PyInstaller (CLI)
run: pyinstaller --onefile --icon=images/icon.ico versions/cli_args.py --name ${{ matrix.os }}_${{ github.ref_name }}_cli-release

- name: List dist directory
Expand All @@ -50,6 +50,8 @@ jobs:
chmod +x dist/${{ matrix.os }}_${{ github.ref_name }}_cli-release
tar -czvf dist/${{ matrix.os }}_${{ github.ref_name }}_cmd.tar.gz dist/${{ matrix.os }}_${{ github.ref_name }}_cmd-release
tar -czvf dist/${{ matrix.os }}_${{ github.ref_name }}_cli.tar.gz dist/${{ matrix.os }}_${{ github.ref_name }}_cli-release
rm -rf dist/${{ matrix.os }}_${{ github.ref_name }}_cmd-release
rm -rf dist/${{ matrix.os }}_${{ github.ref_name }}_cli-release
- name: Upload debug builds
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -84,7 +86,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
tag: ${{ github.ref_name }}
artifacts: release-artifacts/*_${{ github.ref_name }}_*
artifacts: release-artifacts/*_dists/*_${{ github.ref_name }}_*
draft: true
name: "Release ${{ github.ref_name }}"
body: "If you're using the CLI, we recommend renaming the artifact to something shorter, like 'translator-CLI'."
Expand All @@ -110,7 +112,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
tag: ${{ github.ref_name }}
artifacts: release-artifacts/*_${{ github.ref_name }}_cmd*
artifacts: release-artifacts/*_dists/*_${{ github.ref_name }}_cmd*
draft: true
name: "CMDGUI Release ${{ github.ref_name }}"
body: "This is a CMDGUI-specific release."
Expand All @@ -136,7 +138,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
tag: ${{ github.ref_name }}
artifacts: release-artifacts/*_${{ github.ref_name }}_cli*
artifacts: release-artifacts/*_dists/*_${{ github.ref_name }}_cli*
draft: true
name: "CLI Release ${{ github.ref_name }}"
body: "This is a CLI-specific release. We recommend renaming the artifact to something shorter, like 'translator-CLI'."

0 comments on commit e5c9cfa

Please sign in to comment.