Skip to content

Commit 4c92fea

Browse files
committed
Modify publish-release.yml to release in PYPI
1 parent cbef6d3 commit 4c92fea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/publish-release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,28 @@ jobs:
6161
- os: ubuntu-latest
6262
TARGET: ubuntu
6363
CMD_BUILD: >
64-
pyinstaller cli.spec && \
64+
pyinstaller cli.spec &&
6565
mv dist/cli fosslight_bin_ubuntu
6666
OUT_FILE_NAME: fosslight_bin_ubuntu
6767
ASSET_MIME: application/octet-stream
6868
- os: macos-latest
6969
TARGET: macos
7070
CMD_BUILD: >
71-
pyinstaller cli.spec && \
71+
pyinstaller cli.spec &&
7272
mv dist/cli fosslight_bin_macos
7373
OUT_FILE_NAME: fosslight_bin_macos
74-
ASSET_MIME: aapplication/x-mach-binary
74+
ASSET_MIME: application/x-mach-binary
7575
- os: windows-latest
7676
TARGET: windows
7777
CMD_BUILD: >
78-
pyinstaller cli.spec && \
78+
pyinstaller cli.spec &&
7979
move dist/cli.exe fosslight_bin_windows.exe
8080
OUT_FILE_NAME: fosslight_bin_windows.exe
8181
ASSET_MIME: application/vnd.microsoft.portable-executable
8282
steps:
8383
- uses: actions/checkout@v3
8484
with:
85-
ref: main
85+
fetch-depth: 0
8686
- name: Set up Python 3.12
8787
uses: actions/setup-python@v4
8888
with:
@@ -98,7 +98,7 @@ jobs:
9898
id: upload-release-asset
9999
uses: softprops/action-gh-release@v1
100100
env:
101-
GITHUB_TOKEN: ${{ secrets.TOKEN }}
101+
GITHUB_TOKEN: ${{ github.token }}
102102
with:
103103
asset_path: ./${{ matrix.OUT_FILE_NAME}}
104104
deploy:
@@ -107,7 +107,7 @@ jobs:
107107
steps:
108108
- uses: actions/checkout@v3
109109
with:
110-
ref: main
110+
fetch-depth: 0
111111
- name: Set up Python
112112
uses: actions/setup-python@v4
113113
with:

0 commit comments

Comments
 (0)