Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Dec 4, 2023
1 parent de1c0ce commit a0b8b71
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ on:
push:
tags:
- "v*"
branches:
- arqu/ci_release

env:
BIN_NAME: dumbpipe
jobs:
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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/[email protected]
# 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/[email protected]
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

0 comments on commit a0b8b71

Please sign in to comment.