-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
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,31 @@ | ||
name: Release on Tag | ||
on: | ||
push: | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0 | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install build-essential libleveldb1d gcc g++ libleveldb-dev -y | ||
- name: Make | ||
run: ./build.sh | ||
- name: Package project | ||
# junk paths remove to recreate the path where is the file inside the zip package | ||
run: zip --junk-paths linux-dumpsteamcollections build/dumpsteamcollections | ||
- name: Create Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags') | ||
with: | ||
draft: false | ||
prerelease: false | ||
files: linux-dumpsteamcollections.zip |