From a0b8b714ec10aef85bb6eca4deb69da1b1c2144b Mon Sep 17 00:00:00 2001 From: Asmir Avdicevic Date: Mon, 4 Dec 2023 22:14:32 +0100 Subject: [PATCH] cleanup --- .github/workflows/release.yml | 47 ++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab5e0d2..9cede7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,7 @@ on: push: tags: - "v*" - branches: - - arqu/ci_release + env: BIN_NAME: dumbpipe jobs: @@ -42,14 +41,14 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 1 - # - name: Create GitHub release - # id: release - # uses: actions/create-release@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # tag_name: ${{ env.RELEASE_VERSION }} - # release_name: ${{ env.RELEASE_VERSION }} + - name: Create GitHub release + id: release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.RELEASE_VERSION }} + release_name: ${{ env.RELEASE_VERSION }} build-release: name: build-release needs: create-release @@ -68,14 +67,16 @@ jobs: os: ubuntu-latest target: linux-x86_64 runner: [self-hosted, linux, X64] - - name: macOS-latest - os: macOS-latest - target: darwin-x86_64 - runner: [self-hosted, macOS, X64] + # TODO: x86_64 runner is not available on the org level + # - name: macOS-latest + # os: macOS-latest + # target: darwin-x86_64 + # runner: [self-hosted, macOS, X64] - name: macOS-arm-latest os: macOS-latest target: darwin-aarch64 runner: [self-hosted, macOS, ARM64] + # TODO: windows runner is not available on the org level - name: windows-latest os: windows-latest target: windows-x86_64 @@ -108,12 +109,12 @@ jobs: tar czf "$staging.tar.gz" -C "$staging" . echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV fi - # - name: Upload release archive - # uses: actions/upload-release-asset@v1.0.2 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # upload_url: ${{ needs.create-release.outputs.upload_url }} - # asset_path: ${{ env.ASSET }} - # asset_name: ${{ env.ASSET }} - # asset_content_type: application/octet-stream + - name: Upload release archive + uses: actions/upload-release-asset@v1.0.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} + asset_path: ${{ env.ASSET }} + asset_name: ${{ env.ASSET }} + asset_content_type: application/octet-stream