Skip to content

Commit

Permalink
Workflow: Updating workflow to upload frozen binaries to release.
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermodotn committed Aug 23, 2024
1 parent 7b66a13 commit 0b91212
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/frozen-binaries.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
release:
types: [created]

name: Create frozen binaries for release

jobs:

generate:
name: Create release-artifacts
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Checkout the repository
uses: actions/checkout@master

- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build executable
run: pyinstaller --onefile --name pppoe-retriever-${{matrix.os}} --distpath ./dist pppoe-retriever.py

- name: Upload frozen binaries to realease
uses: AButler/[email protected]
with:
files: "./dist/pppoe-retriever-${{matrix.os}}*"
repo-token: ${{ secrets.GITHUB_TOKEN }}


0 comments on commit 0b91212

Please sign in to comment.