From 0f6b64c379f3ecf44d396aeca2a6a7d42eb736c6 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 6 Sep 2024 10:44:25 +0200 Subject: [PATCH] copying all required installation files into artifact --- .github/workflows/publish.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 186a343..e6effb6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,11 +33,18 @@ jobs: - name: Build project 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 uses: actions/upload-artifact@v4 with: name: ProxySwitcher - path: build/* + path: build/ release: runs-on: ubuntu-latest @@ -53,10 +60,15 @@ jobs: name: ProxySwitcher path: artifacts/ + - name: Zip artifacts for release + run: | + cd artifacts/ + zip ../ProxySwitcher.zip * + - name: Create release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release create "${{ github.ref_name }}" \ --title "Release ${{ github.ref_name }}" \ - artifacts/* + ProxySwitcher.zip