diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 95a1cff..29ffe72 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,17 +15,14 @@ jobs: with: go-version: "1.22.2" + - name: Build Artifacts + run: make + - name: Get current date id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H%M%S')" - - - name: Tag commit - uses: tvdias/github-tagger@v0.0.1 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - tag: "${{ steps.date.outputs.date }}" + run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H:%M:%S.%3NZ')" - - uses: ncipollo/release-action@v1 - with: - artifacts: "build/2rm" - tag: "${{ steps.date.outputs.date }}" + - name: Publish to GitHub Releases + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release upload ${{ steps.date.outputs.date }} ./dist/2rm