Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnjk committed Aug 23, 2024
1 parent 820efb1 commit 8da2f05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
33 changes: 9 additions & 24 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
files: dist/*
draft: true
fail_on_unmatched_files: true
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

dist/
dist/*
.vscode
app.*
app
Expand Down

0 comments on commit 8da2f05

Please sign in to comment.