Skip to content

Commit

Permalink
write version on release
Browse files Browse the repository at this point in the history
  • Loading branch information
julianjandeleit committed Apr 11, 2024
1 parent 8ee4753 commit 8820a41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
sudo make install && source /etc/environment
- name: Build artifact
run: sudo make build
run: sudo make build -e VERSION=${{ github.REF_NAME }}
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v2
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
##
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <https://www.gnu.org/licenses/>.

VERSION ?= $$(git rev-parse --verify HEAD)
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf "%-30s %s", $$1, $$2}'

build:
echo $$(git rev-parse --verify HEAD) > src/etc/ai-cli/version
echo $(VERSION) > src/etc/ai-cli/version
dpkg-deb -b src


Expand Down

0 comments on commit 8820a41

Please sign in to comment.