diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d52c8b7..22aab4c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,10 @@ on: + push: + branches: + - main release: - types: [created] + types: + - created name: Create frozen binaries for release @@ -31,7 +35,15 @@ jobs: - name: Build executable run: pyinstaller --onefile --name pppoe-retriever-${{matrix.os}} --distpath ./dist pppoe-retriever.py + - name: Upload artifacts + if: github.event_name == 'push' + uses: actions/upload-artifact@v4 + with: + name: pppoe-retriever-${{matrix.os}} + path: dist/ + - name: Upload frozen binaries to realease + if: github.event_name == 'release' && github.event.action == 'created' uses: AButler/upload-release-assets@v3.0 with: files: "./dist/pppoe-retriever-${{matrix.os}}*" diff --git a/pppoe-retriever.py b/pppoe-retriever.py index 4efcde6..64f1f32 100755 --- a/pppoe-retriever.py +++ b/pppoe-retriever.py @@ -151,7 +151,7 @@ def main(): parser.add_argument('-i', '--interface', type=str, required=True, help='interface to monitor on') parser.add_argument('-l', '--vlan', type=int, default=None, help='ethernet VLAN ID') - parser.add_argument('-r', '--range', type=int, const=100, default=1, nargs='?', help="range of VLAN ID's to try with (must be between 1 and 4096), this will be ignored if --vlan argument is provided") + parser.add_argument('-r', '--range', type=int, const=4096, default=50, nargs='?', help="range of VLAN ID's to try with (must be between 1 and 4096), this will be ignored if --vlan argument is provided") parser.add_argument('-v', '--version', action='version', version='%(prog)s 1.1.0', help='version') args = parser.parse_args()