mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-27 05:01:45 +00:00
copying all required installation files into artifact
This commit is contained in:
parent
1ad29b5ec6
commit
0f6b64c379
16
.github/workflows/publish.yml
vendored
16
.github/workflows/publish.yml
vendored
@ -33,11 +33,18 @@ jobs:
|
|||||||
- name: Build project
|
- name: Build project
|
||||||
run: go build -o build/ -v ./...
|
run: go build -o build/ -v ./...
|
||||||
|
|
||||||
|
- name: Copying skripts and assets
|
||||||
|
run: |
|
||||||
|
cp run.ps1 build/
|
||||||
|
cp install.ps1 build/
|
||||||
|
cp configs.json build/
|
||||||
|
cp -r assets/ build/
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ProxySwitcher
|
name: ProxySwitcher
|
||||||
path: build/*
|
path: build/
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -53,10 +60,15 @@ jobs:
|
|||||||
name: ProxySwitcher
|
name: ProxySwitcher
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
||||||
|
- name: Zip artifacts for release
|
||||||
|
run: |
|
||||||
|
cd artifacts/
|
||||||
|
zip ../ProxySwitcher.zip *
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
gh release create "${{ github.ref_name }}" \
|
gh release create "${{ github.ref_name }}" \
|
||||||
--title "Release ${{ github.ref_name }}" \
|
--title "Release ${{ github.ref_name }}" \
|
||||||
artifacts/*
|
ProxySwitcher.zip
|
||||||
|
Loading…
Reference in New Issue
Block a user