-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub workflow, upload artifacts or publish.
- Loading branch information
1 parent
f007ee3
commit 99be6d7
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
with: | ||
files: "./dist/pppoe-retriever-${{matrix.os}}*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters