From 532d79a2128b2f57333e8f4d20766491ee37b502 Mon Sep 17 00:00:00 2001 From: Tiago Ilieve Date: Sat, 18 Dec 2021 21:36:09 -0300 Subject: [PATCH] Add support for pre-releases --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 159a770..4bd2c13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,6 +47,16 @@ jobs: path: dist/ name: dist - uses: softprops/action-gh-release@v1 + if: contains(github.ref, '-rc') + with: + files: | + dist/staticd-darwin-amd64 + dist/staticd-linux-amd64 + dist/staticd-linux-arm + dist/staticd-linux-arm64 + prerelease: true + - uses: softprops/action-gh-release@v1 + if: contains(github.ref, '-rc') == false with: files: | dist/staticd-darwin-amd64