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 c62dbfe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 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 @@ -71,24 +70,22 @@ jobs:
- uses: actions/download-artifact@v4
- name: Package Windows
run: |
mkdir -p windows/headshotbox
mkdir -p release windows/headshotbox
cp windows-latest/csdemoparser.exe windows/headshotbox/
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
mkdir -p release 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:
draft: true
files: |
headshotbox-linux.zip
headshotbox-win.zip
files: release/*
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 c62dbfe

Please sign in to comment.