From fc3cb08b798b026684f4f066bed4f542859a8b44 Mon Sep 17 00:00:00 2001 From: Sinspired <63581268+sinspired@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:38:18 +0800 Subject: [PATCH 1/7] Create creat_release.yml --- .github/workflows/creat_release.yml | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/creat_release.yml diff --git a/.github/workflows/creat_release.yml b/.github/workflows/creat_release.yml new file mode 100644 index 0000000..8499c9e --- /dev/null +++ b/.github/workflows/creat_release.yml @@ -0,0 +1,57 @@ +name: Build and Release + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" # 选择你的 Python 版本 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pyinstaller + + - name: Build executable + run: | + pyinstaller --onefile vpngateclient/vpngateclient.py + env: + PYTHONUNBUFFERED: 1 + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: vpngateclient-exe + path: dist/vpngateclient.exe + + release: + needs: build + runs-on: ubuntu-latest + steps: + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: vpngateclient-exe + path: . + + - name: Create GitHub Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + Release of vpngateclient + draft: false + prerelease: false + files: dist/vpngateclient.exe From d3ff0a4739f0b49eadd52543c033bc8477290233 Mon Sep 17 00:00:00 2001 From: Sinspired <63581268+sinspired@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:40:28 +0800 Subject: [PATCH 2/7] Update creat_release.yml --- .github/workflows/creat_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/creat_release.yml b/.github/workflows/creat_release.yml index 8499c9e..40d7288 100644 --- a/.github/workflows/creat_release.yml +++ b/.github/workflows/creat_release.yml @@ -23,7 +23,7 @@ jobs: - name: Build executable run: | - pyinstaller --onefile vpngateclient/vpngateclient.py + pyinstaller --onefile VpngateClient/VpngateClient.py env: PYTHONUNBUFFERED: 1 From 3a040bad017a36d10bfc995d47c388f9c474f622 Mon Sep 17 00:00:00 2001 From: Sinspired <63581268+sinspired@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:46:34 +0800 Subject: [PATCH 3/7] Update creat_release.yml --- .github/workflows/creat_release.yml | 41 ++++++++++++++++------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/creat_release.yml b/.github/workflows/creat_release.yml index 40d7288..2bafd45 100644 --- a/.github/workflows/creat_release.yml +++ b/.github/workflows/creat_release.yml @@ -23,10 +23,13 @@ jobs: - name: Build executable run: | - pyinstaller --onefile VpngateClient/VpngateClient.py + pyinstaller --onefile vpngateclient/vpngateclient.py env: PYTHONUNBUFFERED: 1 + - name: List files in dist + run: ls dist + - name: Upload artifact uses: actions/upload-artifact@v3 with: @@ -37,21 +40,21 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - name: Download artifact - uses: actions/download-artifact@v3 - with: - name: vpngateclient-exe - path: . - - - name: Create GitHub Release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: | - Release of vpngateclient - draft: false - prerelease: false - files: dist/vpngateclient.exe + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: vpngateclient-exe + path: . + + - name: Create GitHub Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + Release of vpngateclient + draft: false + prerelease: false + files: dist/vpngateclient.exe From cc33c4df6758a29cfc308f7618498a531337ada6 Mon Sep 17 00:00:00 2001 From: Sinspired <63581268+sinspired@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:49:09 +0800 Subject: [PATCH 4/7] Update creat_release.yml --- .github/workflows/creat_release.yml | 58 +++++++++++++++-------------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/.github/workflows/creat_release.yml b/.github/workflows/creat_release.yml index 2bafd45..4e17e40 100644 --- a/.github/workflows/creat_release.yml +++ b/.github/workflows/creat_release.yml @@ -2,39 +2,41 @@ name: Build and Release on: push: + # tags: + # - 'v*.*.*' # 例如 v1.0.0 jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.x" # 选择你的 Python 版本 - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pyinstaller - - - name: Build executable - run: | - pyinstaller --onefile vpngateclient/vpngateclient.py - env: - PYTHONUNBUFFERED: 1 - - - name: List files in dist - run: ls dist - - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: vpngateclient-exe - path: dist/vpngateclient.exe + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' # 选择你的 Python 版本 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pyinstaller + + - name: Build executable + run: | + pyinstaller --onefile vpngateclient/vpngateclient.py + env: + PYTHONUNBUFFERED: 1 + + - name: List files in dist + run: ls dist + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: vpngateclient-exe + path: dist/vpngateclient* release: needs: build @@ -57,4 +59,4 @@ jobs: Release of vpngateclient draft: false prerelease: false - files: dist/vpngateclient.exe + files: vpngateclient* From 837f35d42e2a966b5300d510fc4f92b0635a2fd6 Mon Sep 17 00:00:00 2001 From: Sinspired <63581268+sinspired@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:52:01 +0800 Subject: [PATCH 5/7] Update creat_release.yml --- .github/workflows/creat_release.yml | 49 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/.github/workflows/creat_release.yml b/.github/workflows/creat_release.yml index 4e17e40..7795e45 100644 --- a/.github/workflows/creat_release.yml +++ b/.github/workflows/creat_release.yml @@ -2,41 +2,40 @@ name: Build and Release on: push: - # tags: - # - 'v*.*.*' # 例如 v1.0.0 jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.x' # 选择你的 Python 版本 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" # 选择你的 Python 版本 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pyinstaller + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pyinstaller - - name: Build executable - run: | - pyinstaller --onefile vpngateclient/vpngateclient.py - env: - PYTHONUNBUFFERED: 1 + - name: Build executable + run: | + pyinstaller --onefile --name vpngateclient.exe vpngateclient/vpngateclient.py - - name: List files in dist - run: ls dist + env: + PYTHONUNBUFFERED: 1 - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: vpngateclient-exe - path: dist/vpngateclient* + - name: List files in dist + run: ls dist + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: vpngateclient-exe + path: dist/vpngateclient.exe release: needs: build @@ -59,4 +58,4 @@ jobs: Release of vpngateclient draft: false prerelease: false - files: vpngateclient* + files: dist/vpngateclient.exe From b6360855dbc8b687ebdf0f87a30c90bd15566a79 Mon Sep 17 00:00:00 2001 From: Sinspired <63581268+sinspired@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:53:40 +0800 Subject: [PATCH 6/7] Update creat_release.yml --- .github/workflows/creat_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/creat_release.yml b/.github/workflows/creat_release.yml index 7795e45..79dc551 100644 --- a/.github/workflows/creat_release.yml +++ b/.github/workflows/creat_release.yml @@ -23,7 +23,7 @@ jobs: - name: Build executable run: | - pyinstaller --onefile --name vpngateclient.exe vpngateclient/vpngateclient.py + pyinstaller --onefile --name vpngateclient.exe VpngateClient/VpngateClient.py env: PYTHONUNBUFFERED: 1 From cf96c1f8c4dc02f7259101fe969eb817f3b9b536 Mon Sep 17 00:00:00 2001 From: Sinspired <63581268+sinspired@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:58:10 +0800 Subject: [PATCH 7/7] Update creat_release.yml