-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/cargo/anyhow-1.0.75
- Loading branch information
Showing
56 changed files
with
1,346 additions
and
1,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
@@ -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 |
Oops, something went wrong.