Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(compile): and publish #2

Merged
merged 19 commits into from
Mar 18, 2024
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
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