Skip to content

Commit

Permalink
Update Ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitthi committed Sep 29, 2024
1 parent 769eff6 commit 0cb9aba
Showing 1 changed file with 9 additions and 29 deletions.
38 changes: 9 additions & 29 deletions .github/workflows/Ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,33 +50,13 @@ jobs:
mkdir -p build/linux-musl/
cp target/aarch64-unknown-linux-musl/release/easy-proxy build/linux-musl/
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# push binaries to release
- name: Push binaries to release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.sha }}
release_name: "Release ${{ github.sha }}"
draft: false
prerelease: false

- name: Upload Linux binary to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/linux/easy-proxy
asset_name: easy-proxy-linux
asset_content_type: application/octet-stream

- name: Upload macOS binary to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/macos/easy-proxy
asset_name: easy-proxy-macos
asset_content_type: application/octet-stream
files: |
build/linux-gnu/easy-proxy
build/linux-musl/easy-proxy
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
title: ${{ github.ref }}

0 comments on commit 0cb9aba

Please sign in to comment.