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