From 9ae7acc87560471763173b72f75205d33733081a Mon Sep 17 00:00:00 2001 From: Priyank Upadhyay Date: Wed, 11 Dec 2024 20:17:35 +0530 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..191c84e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build Binary + +on: + push: + tags: + - 'v*' + workflow_dispatch: + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Make binary executable + run: chmod +x make_binary.sh + + - name: Build binary + run: ./make_binary.sh + + - name: Upload binary artifact + uses: actions/upload-artifact@v3 + with: + name: egs-installer + path: ./egs-installer + + - name: Create Release + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v1 + with: + files: ./egs-installer + draft: false + prerelease: false