From 41b716c69016164835354f095065450d1d4dc8e1 Mon Sep 17 00:00:00 2001 From: William Bell Date: Tue, 8 Aug 2023 21:18:22 +0100 Subject: [PATCH] fix --- .github/workflows/build_releases.yml | 63 +++++++++++++++------------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/.github/workflows/build_releases.yml b/.github/workflows/build_releases.yml index 278dc5e..5b0b96e 100644 --- a/.github/workflows/build_releases.yml +++ b/.github/workflows/build_releases.yml @@ -6,40 +6,43 @@ on: - created jobs: + build: - name: Build and Release runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.20' + - name: Install or Update CA Certificates + run: | + sudo apt update + sudo apt install -y --reinstall ca-certificates - - name: Build Go project - run: go build -o argon ./src + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' - - 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 }} - draft: false - prerelease: false + - name: Build Go project + run: go build -o argon ./src - - name: Upload binary to release - id: 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: ./argon - asset_name: argon - asset_content_type: application/octet-stream + - 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 }} + draft: false + prerelease: false + + - name: Upload binary to release + id: 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: ./argon + asset_name: argon + asset_content_type: application/octet-stream