Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/cargo/anyhow-1.0.75
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug authored Sep 18, 2023
2 parents c500545 + 9eeef0c commit 5b40ae7
Show file tree
Hide file tree
Showing 56 changed files with 1,346 additions and 1,679 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,11 @@ jobs:
steps:
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Output Release URL File
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt
- name: Save Release URL File for publish
Expand All @@ -60,18 +57,20 @@ jobs:
platform: darwin-amd64
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Load Release URL File from release job
uses: actions/download-artifact@v3
with:
path: release_url
name: release_url
- name: Build
run: CARGO_BAZEL_ISOLATED=0 CARGO_BAZEL_REPIN=true bazel build --strip=always //clash/...
- name: Get Release File Name & Upload URL
- name: Get Release Upload URL
id: get_release_info
run: |
echo ::set-output name=file_name::${REPOSITORY_NAME##*/}-${TAG_REF_NAME##*/v} # RepositoryName-v1.0.0
value=`cat release_url/release_url.txt`
echo ::set-output name=upload_url::$value
echo "upload_url=$value" >> $GITHUB_OUTPUT
env:
TAG_REF_NAME: ${{ github.ref }}
REPOSITORY_NAME: ${{ github.repository }}
Expand All @@ -83,5 +82,5 @@ jobs:
with:
upload_url: ${{ steps.get_release_info.outputs.upload_url }}
asset_path: ./bazel-bin/clash/clash
asset_name: ${{ steps.get_release_info.outputs.file_name }}-${{ matrix.platform }}.zip
asset_name: clash-${{ matrix.platform }}
asset_content_type: application/octet-stream
Loading

0 comments on commit 5b40ae7

Please sign in to comment.