Compare commits

..

3 Commits

Author SHA1 Message Date
6f6e38fe13 Merge pull request 'dev-automate-workflow' (#8) from dev-automate-workflow into main
Reviewed-on: #8
2024-07-30 13:28:40 -05:00
b2ce0f26a8 updaged build yaml 2024-07-30 13:27:21 -05:00
a622253b55 updated build 2024-07-30 13:13:16 -05:00

View File

@ -1,31 +1,29 @@
name: Build
on: push
jobs:
build-linux-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12.4'
cache: 'pip' # caching pip dependencies
- run: apt-get update
- run: apt-get install unixodbc -y
- run: pip install -r requirements.txt
- run: pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py
- uses: softprops/action-gh-release@v2
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(gitea.ref, 'refs/tags/')
with:
files: ${{ gitea.workspace }}/dist/inex
# build-linux-binary:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.12.4'
# cache: 'pip' # caching pip dependencies
# - run: apt-get update
# - run: apt-get install unixodbc -y
# - run: pip install -r requirements.txt
# - run: pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py
# - uses: softprops/action-gh-release@v2
# - name: Release
# uses: softprops/action-gh-release@v2
# if: startsWith(gitea.ref, 'refs/tags/')
# with:
# files: ${{ gitea.workspace }}/dist/inex
build-windows-binary:
runs-on: windows
permissions:
contents: write # release changes require contents write
steps:
- uses: actions/checkout@v4
- name: Upload Release Asset
@ -33,5 +31,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: pip install -r requirements.txt
run: pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py
run: gh release upload <release_tag> <a_file>
# run: gh release upload <release_tag> <a_file>