Skip to content

Commit

Permalink
fix: ci settings
Browse files Browse the repository at this point in the history
fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings

fix: ci settings
  • Loading branch information
sumeshi committed Mar 26, 2022
1 parent 94403c3 commit c1a1083
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build-binary.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: build-binary

on:
push:
branches:
- develop
# release:
# types: [published]
release:
types: [published]

jobs:
build-windows:
Expand All @@ -23,21 +20,24 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: replace version
run: cat pyproject.toml | grep version | sed 's/.*\ //g' | xargs -I@ sed -i 's/version(name)/"@"/g' src/ntfsdump/models/MetaData.py

- name: touch init files
run: |
touch src/ntfsdump/models/__init__.py
touch src/ntfsdump/presenters/__init__.py
touch src/ntfsdump/views/__init__.py
from pathlib import Path
version = [l for l in Path('pyproject.toml').read_text().splitlines() if 'version' in l][0].split(' ')[-1].strip('\"')
f = Path('src/ntfsdump/models/MetaData.py')
text = f.read_text().replace("version(name)", f"\'{version}\'")
f.write_text(text)
shell: python

- name: setup poetry
- name: Install dependencies
run: |
pip install poetry
poetry config virtualenvs.in-project true
poetry install --no-interaction
poetry install
- name: run python
run: |
poetry run ntfsdump -h
- name: build
run: |
pip install pyinstaller
Expand Down

0 comments on commit c1a1083

Please sign in to comment.