From 8da2f05391c1a500b61709ed395ae442a7326d77 Mon Sep 17 00:00:00 2001 From: jdnjk <2394058778@qq.com> Date: Fri, 23 Aug 2024 21:14:38 +0800 Subject: [PATCH] test --- .github/workflows/go.yml | 33 +++++++++------------------------ .gitignore | 2 +- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5578762..508a835 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -68,29 +68,14 @@ jobs: check-latest: true - name: Build - run: go build app.go + run: go build app.go -o ./dist - - name: Upload Build Artifact - uses: actions/upload-artifact@v4 + - name: Get version + id: get_version + run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT + - name: Release + uses: softprops/action-gh-release@v1 with: - name: ${{ env.BUILD_NAME }} - path: ${{ env.BUILD_NAME }} - - Publish: - permissions: write-all - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version }} - needs: [ build ] - runs-on: ubuntu-latest - steps: - - uses: actions/download-artifact@v4 - with: - path: bin/ - merge-multiple: true - - - name: Upload Release - uses: softprops/action-gh-release@v2 - if: ${{ success() }} - with: - tag_name: ${{ github.event.inputs.version }} - files: bin/* - prerelease: true \ No newline at end of file + files: dist/* + draft: true + fail_on_unmatched_files: true \ No newline at end of file diff --git a/.gitignore b/.gitignore index b2c6ca0..cb8a9df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -dist/ +dist/* .vscode app.* app