-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH CI autorelease
- Loading branch information
Showing
7 changed files
with
90 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,60 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
architecture: [x86, x64] | ||
name: Build on Windows ${{ matrix.architecture }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
id: set_up_python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.8' | ||
architecture: ${{ matrix.architecture }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Generate binary exe file | ||
run: | | ||
pip install pyinstaller | ||
pyinstaller --onefile --noconsole --add-data 'translation/*.qm;translation/' SportiduinoPQ.py | ||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
shell: bash | ||
- name: Rename artifacts | ||
run: | | ||
mv dist/SportiduinoPQ.exe dist/SportiduinoPQ-${{ steps.get_version.outputs.VERSION }}-win-${{ matrix.architecture }}.exe | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
#name: SportiduinoPQ-${{ steps.get_version.outputs.VERSION }}-win-${{ matrix.architecture }} | ||
path: dist/*.exe | ||
- name: Generate Changelog | ||
run: | | ||
# Get text after ## ... <version> from changelog.ru.md and changelog.en.md | ||
sed -n "/^##.*${{ github.ref_name }}$/,/^##/{/^##/d ; p}" CHANGELOG.ru.md | sed -z "s/^\n*//g" - > ${{ github.workspace }}-CHANGELOG.txt | ||
printf "\n---\n" >> ${{ github.workspace }}-CHANGELOG.txt | ||
sed -n "/^##.*${{ github.ref_name }}$/,/^##/{/^##/d ; p}" CHANGELOG.md | sed -z "s/^\n*//g" - >> ${{ github.workspace }}-CHANGELOG.txt | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
body_path: ${{ github.workspace }}-CHANGELOG.txt | ||
files: | | ||
dist/*.exe | ||
# vim: ts=2 sw=2 et |
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
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,13 @@ | ||
## 2022-01-17 - v0.10.2 | ||
|
||
- QSpinBox для номера чипа | ||
- Не используются datetime из прошлого (чип сна) | ||
- Выключена устаревшая опция "Быстрая отметка" в конфиге | ||
|
||
[Все изменения](https://github.com/sportiduino/sportiduinopq/compare/v0.10.1...v0.10.2) | ||
|
||
## 2021-10-21 - v0.10.1 | ||
|
||
- Автосборка с Python 3.8 для Windows 7 | ||
|
||
|
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
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
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