Skip to content

Commit

Permalink
Add .env file for configuration and update .gitignore; enhance GitHub…
Browse files Browse the repository at this point in the history
… Actions workflow to include .env in build process
  • Loading branch information
JHM69 committed Dec 13, 2024
1 parent 6280970 commit df50d70
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TESSERACT_PATH=C:\Program Files\Tesseract-OCR\tesseract.exe
GOOGLE_API_KEY=Your_GOOGLE_API_KEY
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,17 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
pip install pyinstaller python-dotenv
- name: Build Windows Executable
run: |
pyinstaller --onefile --windowed main.py
pyinstaller --onefile --windowed --add-data ".env:." main.py
- name: Generate Tag
id: generate_tag
run: |
$tag = "v1.0.${{ github.run_number }}"
echo "TAG=$tag" >> $env:GITHUB_OUTPUT
git config user.name github-actions
git config user.email github-actions@github.com
git tag $tag
git push origin $tag
- name: Create Release
uses: softprops/action-gh-release@v2
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ celerybeat-schedule
# SageMath parsed files
*.sage.py

# Environments
.env
# Environments
.venv
env/
venv/
Expand Down

0 comments on commit df50d70

Please sign in to comment.