diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d48b974 --- /dev/null +++ b/.github/workflows/release.yml @@ -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