Fix deprecated GitHub Actions - update to latest versions
This commit is contained in:
26
.github/workflows/build-windows.yml
vendored
26
.github/workflows/build-windows.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
python-version: ['3.11']
|
python-version: ['3.11']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@@ -32,30 +32,16 @@ jobs:
|
|||||||
run: python build_exe.py
|
run: python build_exe.py
|
||||||
|
|
||||||
- name: Upload Windows executable as artifact
|
- name: Upload Windows executable as artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: LabelPrinter-Windows
|
name: LabelPrinter-Windows
|
||||||
path: dist/LabelPrinter.exe
|
path: dist/LabelPrinter.exe
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release and Upload
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: actions/create-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: dist/LabelPrinter.exe
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
|
||||||
tag_name: ${{ github.ref }}
|
|
||||||
release_name: Release ${{ github.ref }}
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
|
|
||||||
- name: Upload to Release
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./dist/LabelPrinter.exe
|
|
||||||
asset_name: LabelPrinter.exe
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|||||||
Reference in New Issue
Block a user