From bc82346680246a1a9ce2d89f7c4dd4f16ba8100d Mon Sep 17 00:00:00 2001 From: githubDante Date: Sun, 13 Oct 2024 00:54:20 +0300 Subject: [PATCH] Workflow - release & upload --- .github/workflows/go-release.yaml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/go-release.yaml diff --git a/.github/workflows/go-release.yaml b/.github/workflows/go-release.yaml new file mode 100644 index 0000000..5afc76c --- /dev/null +++ b/.github/workflows/go-release.yaml @@ -0,0 +1,33 @@ +name: Go-Release + +on: + push: + tags: + - "*" +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.22.x' + - name: Build + run: make all + - uses: actions/upload-artifact@v4 + with: + name: 'go-solarmanV5-proxy' + path: build + retention-days: 5 + - uses: actions/download-artifact@v4 + with: + path: build + - name: List artifacts + run: ls -R build/ + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: | + build/go-solarmanV5-proxy/* \ No newline at end of file