|
1 | | -name: Build and Release EXE |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - tags: |
6 | | - - "v*.*.*" # Triggers on v1.0.0, v2.1.3, etc. |
7 | | - workflow_dispatch: # Manual trigger for testing |
8 | | - |
9 | | -permissions: |
10 | | - contents: write # Required for creating releases |
11 | | - |
12 | | -jobs: |
13 | | - build-windows-exe: |
14 | | - runs-on: windows-latest |
15 | | - |
16 | | - steps: |
17 | | - - name: Checkout code |
18 | | - uses: actions/checkout@v3 |
19 | | - |
20 | | - - name: Set up Python |
21 | | - uses: actions/setup-python@v4 |
22 | | - with: |
23 | | - python-version: "3.11" |
24 | | - |
25 | | - - name: Install dependencies |
26 | | - run: | |
27 | | - python -m pip install --upgrade pip |
28 | | - python -m pip install pyinstaller |
29 | | - # Add your requirements.txt if you have one |
30 | | - # python -m pip install -r requirements.txt |
31 | | -
|
32 | | - - name: Build EXE with PyInstaller |
33 | | - run: | |
34 | | - python -m PyInstaller --onefile --windowed --name="AWS_EC2_VPN" --icon=Assets/icon.ico --paths=Client --distpath=dist Client/main.py |
35 | | -
|
36 | | - - name: Get version from tag |
37 | | - id: get_version |
38 | | - run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $env:GITHUB_OUTPUT |
39 | | - |
40 | | - - name: Create Release and Upload EXE |
41 | | - uses: softprops/action-gh-release@v1 |
42 | | - with: |
43 | | - tag_name: ${{ github.ref }} |
44 | | - name: AWS EC2 VPN ${{ steps.get_version.outputs.VERSION }} |
45 | | - body: | |
46 | | - ## Download |
47 | | - Download `AWS_EC2_VPN.exe` below to get started. |
48 | | -
|
49 | | - ## Installation |
50 | | - 1. Download the exe file |
51 | | - 2. Run AWS_EC2_VPN.exe |
52 | | - 3. No Python installation required |
53 | | -
|
54 | | - ## Changes |
55 | | - - Built from commit: ${{ github.sha }} |
56 | | - draft: false |
57 | | - prerelease: false |
58 | | - files: ./dist/AWS_EC2_VPN.exe |
59 | | - env: |
60 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 1 | +# name: Build and Release EXE |
| 2 | + |
| 3 | +# on: |
| 4 | +# push: |
| 5 | +# tags: |
| 6 | +# - "v*.*.*" # Triggers on v1.0.0, v2.1.3, etc. |
| 7 | +# workflow_dispatch: # Manual trigger for testing |
| 8 | + |
| 9 | +# permissions: |
| 10 | +# contents: write # Required for creating releases |
| 11 | + |
| 12 | +# jobs: |
| 13 | +# build-windows-exe: |
| 14 | +# runs-on: windows-latest |
| 15 | + |
| 16 | +# steps: |
| 17 | +# - name: Checkout code |
| 18 | +# uses: actions/checkout@v3 |
| 19 | + |
| 20 | +# - name: Set up Python |
| 21 | +# uses: actions/setup-python@v4 |
| 22 | +# with: |
| 23 | +# python-version: "3.11" |
| 24 | + |
| 25 | +# - name: Install dependencies |
| 26 | +# run: | |
| 27 | +# python -m pip install --upgrade pip |
| 28 | +# python -m pip install pyinstaller |
| 29 | +# # Add your requirements.txt if you have one |
| 30 | +# # python -m pip install -r requirements.txt |
| 31 | + |
| 32 | +# - name: Build EXE with PyInstaller |
| 33 | +# run: | |
| 34 | +# python -m PyInstaller --onefile --windowed --name="AWS_EC2_VPN" --icon=Assets/icon.ico --paths=Client --distpath=dist Client/main.py |
| 35 | + |
| 36 | +# - name: Get version from tag |
| 37 | +# id: get_version |
| 38 | +# run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $env:GITHUB_OUTPUT |
| 39 | + |
| 40 | +# - name: Create Release and Upload EXE |
| 41 | +# uses: softprops/action-gh-release@v1 |
| 42 | +# with: |
| 43 | +# tag_name: ${{ github.ref }} |
| 44 | +# name: AWS EC2 VPN ${{ steps.get_version.outputs.VERSION }} |
| 45 | +# body: | |
| 46 | +# ## Download |
| 47 | +# Download `AWS_EC2_VPN.exe` below to get started. |
| 48 | + |
| 49 | +# ## Installation |
| 50 | +# 1. Download the exe file |
| 51 | +# 2. Run AWS_EC2_VPN.exe |
| 52 | +# 3. No Python installation required |
| 53 | + |
| 54 | +# ## Changes |
| 55 | +# - Built from commit: ${{ github.sha }} |
| 56 | +# draft: false |
| 57 | +# prerelease: false |
| 58 | +# files: ./dist/AWS_EC2_VPN.exe |
| 59 | +# env: |
| 60 | +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments