From 78f1be8a9126f1b92ed1073ff242f54295ddfbf9 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sun, 1 Sep 2024 15:17:17 +0200 Subject: [PATCH] creating release including asset using github cli --- .github/workflows/build.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85f5ecf..89c13c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,21 +34,8 @@ jobs: - name: Build project run: go build -o build/ -v ./... - - name: Create release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - - - name: Upload release asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: build/ProxySwitcher.exe - asset_name: ProxySwitcher.exe - asset_content_type: x-msdownload + - name: Create release with asset + run: | + gh release create "${{ github.ref_name }}" \ + --title "Release ${{ github.ref_name }}" \ + build/ProxySwitcher.exe