mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-27 05:01:45 +00:00
test: specifying artifact download path
This commit is contained in:
parent
7bad3a40be
commit
de2bfbe621
20
.github/workflows/publish.yml
vendored
20
.github/workflows/publish.yml
vendored
@ -7,16 +7,16 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags: 'v*'
|
tags: 'v*'
|
||||||
|
|
||||||
env:
|
|
||||||
GOOS: windows
|
|
||||||
GOARCH: amd64
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
GOOS: windows
|
||||||
|
GOARCH: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Get GoLang version
|
- name: Get GoLang version
|
||||||
@ -45,15 +45,19 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ProxySwitcher
|
name: ProxySwitcher
|
||||||
|
path: '${{ github.workspace }}/artifacts/'
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
gh release create "${{ github.event.workflow_run.head_ref }}" \
|
gh release create "${{ github.ref_name }}" \
|
||||||
--title "Release ${{ github.event.workflow_run.head_ref }}" \
|
--title "Release ${{ github.ref_name }}" \
|
||||||
ProxySwitcher
|
'${{ github.workspace }}/artifacts/'
|
||||||
|
Loading…
Reference in New Issue
Block a user