From aeeddcd9c2d8b2320796a96e1fff7b438cb46219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hellmann?= Date: Mon, 9 Sep 2024 13:33:06 +0200 Subject: [PATCH] chore: github workflows & README.md --- .github/PULL_REQUEST_TEMPLATE.md | 4 ++-- .github/workflows/main.yml | 8 +++++--- .github/workflows/tag.yml | 19 ++++++++++++++++--- README.md | 1 + 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 0e7f653d..59e4730c 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -3,8 +3,8 @@ #### What Type of Change is this? - [ ] New Feature -- [ ] Minor Fix -- [ ] Major Improvement +- [ ] Fix +- [ ] Improvement - [ ] Other #### Description (required) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5d4e5e55..53900c4a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,13 +44,15 @@ jobs: steps: - name: Set up Go 1.x - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: ~1.22 + go-version-file: "go.mod" id: go + env: + CGO_ENABLED: 0 - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get dependencies run: | diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index a2d64ee9..fb232ea6 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -55,13 +55,15 @@ jobs: steps: - name: Set up Go 1.x - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: ~1.22 + go-version-file: "go.mod" id: go + env: + CGO_ENABLED: 0 - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get dependencies run: | @@ -101,6 +103,17 @@ jobs: asset_name: ${{ matrix.file }} asset_content_type: application/octet-stream + - name: Notify discord about new release + uses: sarisia/actions-status-discord@v1.15.0 + with: + webhook: ${{ secrets.DISCORD_WEBHOOK }} + title: "New version of `zcli` is ready!" + description: | + Version `${{ github.event.release.tag_name }}` + Changelog [here](${{ github.event.release.html_url }}) + color: 0xff91a4 + username: GitHub + publish-npm: needs: build runs-on: ubuntu-latest diff --git a/README.md b/README.md index 69c7bfcf..a1c63807 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ ### Optional requirements - [Wireguard](https://www.wireguard.com/install/) - utilized by `zcli vpn` command. +- ping - utilized by `zcli vpn` command.