Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wrong directory detection for release action #49

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'."