Skip to content

Commit

Permalink
feat: if release, you can get docker wrapper exe file
Browse files Browse the repository at this point in the history
Signed-off-by: soonhong99 <67502252+soonhong99@users.noreply.github.com>
  • Loading branch information
soonhong99 committed Sep 20, 2024
1 parent 625e9b4 commit 3a28931
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,34 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: |
nanayah99/fosslight_scanner:latest
nanayah99/fosslight_scanner:${{ github.event.release.tag_name }}
nanayah99/fosslight_scanner:${{ github.event.release.tag_name }}
create-windows-executable:
runs-on: windows-latest
needs: build-and-push-docker
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
pip install pyinstaller
pip install -r requirements.txt
- name: Create executable
run: pyinstaller --onefile additionalOption.py

- name: Upload executable to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dist/additionalOption.exe
asset_name: fosslight_wrapper.exe
asset_content_type: application/vnd.microsoft.portable-executable

0 comments on commit 3a28931

Please sign in to comment.