Skip to content

Commit 62eb8be

Browse files
authored
ci: optimise release script
1 parent a7154f5 commit 62eb8be

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

.github/workflows/release.yaml

+2-17
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,13 @@ jobs:
3030
run: |
3131
pyinstaller hathitrustdownloader/cli.py --name downloader
3232
33-
- name: ZIP the Windows release artifacts
34-
run: Compress-Archive -Path dist/downloader downloader.zip
35-
36-
- name: Create Release
37-
id: create_release
38-
uses: actions/create-release@v1
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
with:
42-
tag_name: ${{ github.ref }}
43-
release_name: Release ${{ github.ref }}
44-
draft: false
45-
prerelease: ${{ contains(github.ref, '-rc') }}
46-
4733
- name: Get the version
4834
id: get_version
4935
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
5036
shell: bash
5137

52-
- name: Rename release file
53-
run: mv downloader.zip downloader_${{ steps.get_version.outputs.VERSION }}_win.zip
54-
shell: bash
38+
- name: ZIP the Windows release artifacts
39+
run: Compress-Archive -Path dist/downloader downloader_${{ steps.get_version.outputs.VERSION }}_win.zip
5540

5641
- name: Release
5742
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)