Compare commits
17 Commits
dbd11e02a0
...
v.0.0.2
Author | SHA1 | Date | |
---|---|---|---|
b076be8333 | |||
5cae8105d0 | |||
17155120ab | |||
7c65c0e357 | |||
8fbd10d9df | |||
cfa23470a8 | |||
73acbb6646 | |||
82ad280aa8 | |||
0174336f39 | |||
165ba4533c | |||
822fb79fd4 | |||
9ca8631abb | |||
6615637d07 | |||
c4bd226b7e | |||
6f6e38fe13 | |||
b2ce0f26a8 | |||
a622253b55 |
@ -1,37 +1,33 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux-binary:
|
# build-linux-binary:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
# - uses: actions/setup-python@v5
|
||||||
with:
|
# with:
|
||||||
python-version: '3.12.4'
|
# python-version: '3.12.4'
|
||||||
cache: 'pip' # caching pip dependencies
|
# cache: 'pip' # caching pip dependencies
|
||||||
- run: apt-get update
|
# - run: apt-get update
|
||||||
- run: apt-get install unixodbc -y
|
# - run: apt-get install unixodbc -y
|
||||||
- run: pip install -r requirements.txt
|
# - run: pip install -r requirements.txt
|
||||||
- run: pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py
|
# - 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:
|
build-windows-binary:
|
||||||
runs-on: windows
|
runs-on: windows
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # release changes require contents write
|
contents: write # release changes require contents write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Upload Release Asset
|
- uses: actions/setup-python@v4
|
||||||
env:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
python-version: '3.12.4'
|
||||||
run: pip install -r requirements.txt
|
cache: 'pip' # caching pip dependencies
|
||||||
run: pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py
|
- run: python -m pip install -r requirements.txt
|
||||||
run: gh release upload <release_tag> <a_file>
|
- run: pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py
|
||||||
|
- uses: softprops/action-gh-release@v2
|
||||||
|
if: startsWith(gitea.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
files: ${{ gitea.workspace }}/dist/inex.exe
|
Reference in New Issue
Block a user