From 02be45879d0d77f4df9643cfd75e436dc28f7c3d Mon Sep 17 00:00:00 2001 From: AndrewLester Date: Tue, 4 Jul 2023 01:11:48 -0400 Subject: [PATCH] Try fix --- .github/workflows/build.yml | 128 ++++++++++++++++++------------------ 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d3088bc..b0841e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,72 +1,72 @@ name: Build on: - push: - tags: - - 'v*' + push: + tags: + - 'v*' jobs: - build: - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.19 + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 - - name: Build - run: make + - name: Build + run: make + - run: mv ${{ github.workspace }}/bin/ntpal ${{ github.workspace }}/bin/ntpal-${{ matrix.os }} + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: ntpal-binary-${{ matrix.os }} + path: ${{ github.workspace }}/bin/ntpal-${{ matrix.os }} - - name: Upload - uses: actions/upload-artifact@v3 - with: - name: ntpal-binary-${{ matrix.os }} - path: ${{ github.workspace }}/bin/ntpal - - release: - runs-on: ubuntu-latest - needs: build - permissions: write-all - steps: - - name: Download Ubuntu - uses: actions/download-artifact@v3 - with: - name: ntpal-binary-ubuntu-latest - - name: Download Macos - uses: actions/download-artifact@v3 - with: - name: ntpal-binary-macos-latest - - 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 }} - body: "### Release for ref - ${{ github.ref }}\nChanges:\n- ${{ join(github.event.commits.*.message, '\n- ') }}" - draft: false - prerelease: false - - name: Upload Release Asset - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ github.workspace }}/ntpal-binary-ubuntu-latest - asset_name: ntpal-ubuntu - asset_content_type: application/octet-stream - - name: Upload Release Asset - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ github.workspace }}/ntpal-binary-macos-latest - asset_name: ntpal-macos - asset_content_type: application/octet-stream + release: + runs-on: ubuntu-latest + needs: build + permissions: write-all + steps: + - name: Download Ubuntu + uses: actions/download-artifact@v3 + with: + name: ntpal-binary-ubuntu-latest + - name: Download Macos + uses: actions/download-artifact@v3 + with: + name: ntpal-binary-macos-latest + - 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 }} + body: "### Release for ref - ${{ github.ref }}\nChanges:\n- ${{ join(github.event.commits.*.message, '\n- ') }}" + draft: false + prerelease: false + - name: Upload Release Asset + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ${{ github.workspace }}/ntpal-ubuntu-latest + asset_name: ntpal-ubuntu + asset_content_type: application/octet-stream + - name: Upload Release Asset + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ${{ github.workspace }}/ntpal-macos-latest + asset_name: ntpal-macos + asset_content_type: application/octet-stream