Skip to content

Commit

Permalink
feat: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iholston committed Nov 19, 2023
1 parent 9acce2b commit ea4fc99
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/build_and_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Release

on:
push:
tags:
- '*'

jobs:
build:
runs-on: [windows-latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Build artifact
run: |
pip install -r requirements.txt pyinstaller
pyinstaller --onefile --noconsole --name heimerdinger --icon=icon.png --add-data "icon.png:." main.py
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: heimerdinger
path: dist/*

release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: heimerdinger
- name: Push to release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
replacesArtifacts: false
artifacts: heimerdinger.exe
3 changes: 2 additions & 1 deletion tray.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pystray
import os
import sys

import pystray
from PIL import Image


Expand Down

0 comments on commit ea4fc99

Please sign in to comment.