-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .env file for configuration and update .gitignore; enhance GitHub…
… Actions workflow to include .env in build process
- Loading branch information
Showing
3 changed files
with
5 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TESSERACT_PATH=C:\Program Files\Tesseract-OCR\tesseract.exe | ||
GOOGLE_API_KEY=Your_GOOGLE_API_KEY |
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 |
---|---|---|
|
@@ -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 [email protected] | ||
git tag $tag | ||
git push origin $tag | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
|
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