Skip to content

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
vietanhdev committed Nov 10, 2024
1 parent e6fa999 commit b74cd11
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Create Release
id: create_release
uses: mikepenz/action-gh-release@v0.2.0-a03
uses: softprops/action-gh-release@v2
with:
body: ${{steps.github_release.outputs.changelog}}
draft: true
Expand All @@ -52,7 +52,7 @@ jobs:
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt

- name: Save release url file for publish
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: release_url
path: release_url.txt
Expand Down Expand Up @@ -99,18 +99,19 @@ jobs:
pyinstaller anylabeling.spec
- name: Load release url file from release job
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: release_url
path: release_url

- name: Get release file name & upload url
id: get_release_info
run: |
echo "::set-output name=upload_url::$(cat release_url/release_url.txt)"
echo "::set-output name=upload_url::$(cat release_url.txt)"
- name: Upload release executable on macOS & Linux
id: upload_release_executable_macos_linux
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -122,7 +123,7 @@ jobs:

- name: Upload release executable on Windows
id: upload_release_executable_windows
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -142,7 +143,7 @@ jobs:

- name: Upload release app on macOS
id: upload_release_app_macos
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -194,18 +195,19 @@ jobs:
pyinstaller anylabeling.spec
- name: Load release url file from release job
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: release_url
path: release_url

- name: Get release file name & upload url
id: get_release_info
run: |
echo "::set-output name=upload_url::$(cat release_url/release_url.txt)"
echo "::set-output name=upload_url::$(cat release_url.txt)"
- name: Upload release executable on macOS & Linux
id: upload_release_executable_macos_linux
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -217,7 +219,7 @@ jobs:

- name: Upload release executable on Windows
id: upload_release_executable_windows
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -237,7 +239,7 @@ jobs:

- name: Upload release app on macOS
id: upload_release_app_macos
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion anylabeling/app_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__appname__ = "AnyLabeling"
__appdescription__ = "Effortless data labeling with AI support"
__version__ = "0.4.11"
__version__ = "0.4.14"
__preferred_device__ = "CPU" # GPU or CPU

0 comments on commit b74cd11

Please sign in to comment.