Skip to content

Commit

Permalink
CI: invoke version information script
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Jan 21, 2024
1 parent 6aa68e5 commit c9f2166
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Write version info
shell: bash
run: scripts/make-version.sh
- name: Build with pyInstaller
run: |
bash scripts/make-version.sh
pyinstaller beavertails/tui.py \
--add-data beavertails/static:./beavertails/static \
--add-data beavertails/beavertails.tcss:. \
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Write version info
shell: bash
run: scripts/make-version.sh
- name: Build with pyInstaller
run: |
pyinstaller beavertails/tui.py \
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Write version info
shell: bash
run: scripts/make-version.sh
- name: Build with pyInstaller
run: |
pyinstaller beavertails/tui.py --add-data "beavertails/static;./beavertails/static" --add-data "beavertails/beavertails.tcss;." --collect-all pulp --onefile --nowindow --noconfirm
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
**/.DS_Store
dist
build
**/_version.py
3 changes: 0 additions & 3 deletions beavertails/_version.py

This file was deleted.

6 changes: 3 additions & 3 deletions scripts/make-version.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ GIT_BRANCH=$(git symbolic-ref -q --short HEAD)
GIT_SHA=$(git rev-parse --short HEAD)


echo "GIT_TAG=\"$GIT_TAG\"">> $SCRIPTPATH/../beavertails/_version.py
echo "GIT_BRANCH=\"$GIT_BRANCH\"">> $SCRIPTPATH/../beavertails/_version.py
echo "GIT_SHA=\"$GIT_SHA\"">> $SCRIPTPATH/../beavertails/_version.py
echo "GIT_TAG=\"$GIT_TAG\"" > $SCRIPTPATH/../beavertails/_version.py
echo "GIT_BRANCH=\"$GIT_BRANCH\"" >> $SCRIPTPATH/../beavertails/_version.py
echo "GIT_SHA=\"$GIT_SHA\"" >> $SCRIPTPATH/../beavertails/_version.py

0 comments on commit c9f2166

Please sign in to comment.