Skip to content

Commit

Permalink
fix bug: remove deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zfb132 committed Dec 31, 2022
1 parent 96fae1c commit 9313b28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/publish-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
name: build and run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
Expand Down Expand Up @@ -57,15 +57,10 @@ jobs:
uses: actions/download-artifact@v3
with:
name: release
- name: Prepare Release
id: prepare_release
run: |
TAG_NAME=`echo $GITHUB_REF | cut -d / -f3`
echo ::set-output name=tag_name::$TAG_NAME
- name: Create Ubuntu Release
run: |
mv QrScan.zip QrScan_linux_${{steps.prepare_release.outputs.tag_name}}.zip
mv QrScan.zip QrScan_linux_${{ github.ref_name }}.zip
- name: Upload Ubuntu Release
uses: softprops/action-gh-release@v1
with:
files: QrScan_linux_${{steps.prepare_release.outputs.tag_name}}.zip
files: QrScan_linux_${{ github.ref_name }}.zip
13 changes: 4 additions & 9 deletions .github/workflows/publish-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
name: build and run
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
Expand Down Expand Up @@ -53,15 +53,10 @@ jobs:
uses: actions/download-artifact@v3
with:
name: release
- name: Prepare Release
id: prepare_release
run: |
TAG_NAME=`echo $GITHUB_REF | cut -d / -f3`
echo ::set-output name=tag_name::$TAG_NAME
- name: Create Windows Release
run: |
mv QrScan.zip QrScan_windows_${{steps.prepare_release.outputs.tag_name}}.zip
mv QrScan.zip QrScan_windows_${{ github.ref_name }}.zip
- name: Upload Windows Release
uses: softprops/action-gh-release@v1
with:
files: QrScan_windows_${{steps.prepare_release.outputs.tag_name}}.zip
files: QrScan_windows_${{ github.ref_name }}.zip

0 comments on commit 9313b28

Please sign in to comment.