Skip to content

Commit

Permalink
Fix release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lcb01a committed Jul 5, 2024
1 parent 2b3ba3c commit c840312
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defaults:
shell: bash

jobs:
build:
Build:
name: Build release
runs-on: windows-latest

Expand All @@ -29,40 +29,35 @@ jobs:
pip install -r requirements.txt
- name: Build with pyinstaller
run: pyinstaller --hidden-import zeroconf._utils.ipaddress --hidden-import zeroconf._handlers.answers --hidden-import=clr --add-data "./img/logo.png;img" --onefile --noconsole --distpath ./build --name=vrc-vrphone main.py
run: pyinstaller --hidden-import zeroconf._utils.ipaddress --hidden-import zeroconf._handlers.answers --hidden-import=clr --add-data "./img/logo.png;img" --onefile --distpath ./build --name=vrc-vrphone main.py

- name: Deploy EXE
uses: actions/upload-artifact@v3
with:
name: vrphone
name: vrc-vrphone
path: ./build/vrc-vrphone.exe
if-no-files-found: error


# release:
# needs: build
# permissions:
# contents: write
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3

# - uses: actions/download-artifact@v3
# with:
# name: vrc-vrphone
# path: artifact/vrc-vrphone.exe
release:
needs: Build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# - uses: actions/download-artifact@v3
# with:
# name: VRC_VRPhone
# path: artifact/VRC_VRPhone
- uses: actions/download-artifact@v3
with:
name: vrc-vrphone
path: artifact/vrc-vrphone

# - name: Display structure of downloaded files
# run: ls -R
# working-directory: artifact
- name: Display structure of downloaded files
run: ls -R
working-directory: artifact

# - uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: |
# artifact/vrc-vrphone/vrc-vrphone.exe
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
artifact/vrc-vrphone/vrc-vrphone.exe

0 comments on commit c840312

Please sign in to comment.