diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01f67b8..bec3c9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ jobs: strategy: matrix: os: ['linux', 'darwin', 'windows'] + permissions: + contents: write runs-on: ubuntu-latest name: 'Build All Artefacts' steps: @@ -29,22 +31,15 @@ jobs: - name: 'Mirror Dist' run: cp -r ./dist ./pkg/server/dist - name: 'Compile Binary' - run: GOOS=${{ matrix.os }} GOARCH=amd64 go build -o dist/roadie-${{ matrix.os }}-amd64 ./cmd/roadie + run: mkdir bin && GOOS=${{ matrix.os }} GOARCH=amd64 go build -o bin/roadie-${{ matrix.os }}-amd64 ./cmd/roadie - name: 'Archive Binary' uses: actions/upload-artifact@v4 with: name: binary-amd64-${{ matrix.os }} - path: dist/roadie-${{ matrix.os }}-amd64 - - release: - name: 'Create Github Release' - permissions: - contents: write - runs-on: ubuntu-latest - needs: build - steps: - - uses: ncipollo/release-action@v1 + path: bin/roadie-${{ matrix.os }}-amd64 + - name: 'Create Github Release' + uses: ncipollo/release-action@v1 with: - artifacts: 'dist/*' + artifacts: 'bin/*' omitBody: true