Skip to content

Commit

Permalink
Bump version to 1.0.
Browse files Browse the repository at this point in the history
Also:
- include version in release artifacts zip names
- remove v prefix from tags.
  • Loading branch information
abenea committed Feb 9, 2024
1 parent 2328f48 commit 94b438b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Build
on:
push:
branches: [ "master" ]
tags:
- v*
tags: [ "*" ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -30,7 +29,7 @@ jobs:
target/release/csdemoparser.exe
package:
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build
steps:
Expand Down Expand Up @@ -76,15 +75,15 @@ jobs:
cp target-lein/hsbox-*-standalone.jar windows/headshotbox/hsbox-standalone.jar
echo 'start javaw -jar hsbox-standalone.jar --port 4000 --systray' > windows/headshotbox/headshotbox.bat
echo 'java -jar hsbox-standalone.jar --port 4000' > windows/headshotbox/headshotbox_console.bat
cd windows && zip ../headshotbox-win.zip headshotbox/*
cd windows && zip ../release/headshotbox-${GITHUB_REF_NAME}-win.zip headshotbox/*
- name: Package Linux
run: |
mkdir -p linux/headshotbox
cp ubuntu-20.04/csdemoparser linux/headshotbox/
cp target-lein/hsbox-*-standalone.jar linux/headshotbox/hsbox-standalone.jar
echo 'java -jar hsbox-standalone.jar --port 4000' > linux/headshotbox/headshotbox.sh
chmod a+x linux/headshotbox/headshotbox.sh linux/headshotbox/csdemoparser
cd linux && zip ../headshotbox-linux.zip headshotbox/*
cd linux && zip ../release/headshotbox-${GITHUB_REF_NAME}-linux.zip headshotbox/*
- name: Release
uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(defproject
hsbox "0.18.2"
hsbox "1.0"
:description "Headshot Box"
:url "http://headshotbox.github.io"
:license {:name "Eclipse Public License"
Expand Down

0 comments on commit 94b438b

Please sign in to comment.