mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 12:41:45 +00:00
creating release including asset using github cli
This commit is contained in:
parent
805d2fc927
commit
78f1be8a91
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@ -34,21 +34,8 @@ jobs:
|
|||||||
- name: Build project
|
- name: Build project
|
||||||
run: go build -o build/ -v ./...
|
run: go build -o build/ -v ./...
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release with asset
|
||||||
id: create_release
|
run: |
|
||||||
uses: actions/create-release@v1
|
gh release create "${{ github.ref_name }}" \
|
||||||
env:
|
--title "Release ${{ github.ref_name }}" \
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
build/ProxySwitcher.exe
|
||||||
with:
|
|
||||||
tag_name: ${{ github.ref }}
|
|
||||||
release_name: Release ${{ github.ref }}
|
|
||||||
|
|
||||||
- name: Upload release asset
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: build/ProxySwitcher.exe
|
|
||||||
asset_name: ProxySwitcher.exe
|
|
||||||
asset_content_type: x-msdownload
|
|
||||||
|
Loading…
Reference in New Issue
Block a user