Skip to content

Commit

Permalink
Set the artifact URL directly
Browse files Browse the repository at this point in the history
  • Loading branch information
taiidani committed Aug 19, 2023
1 parent a885e88 commit bacd2de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ jobs:
cache: true

- name: Tag Release
run: git tag $(date +'%Y.%m.%d')-${GITHUB_SHA::4}
run: git tag v$(date +'%Y.%m.%d')-${GITHUB_SHA::6}

- name: Run GoReleaser
id: goreleaser
uses: goreleaser/goreleaser-action@v4
with:
args: release --clean
Expand All @@ -35,11 +34,7 @@ jobs:

- name: Set output
id: outputs
run: echo "version=${{ steps.goreleaser.outputs.artifacts }}" >> "$GITHUB_OUTPUT"

- name: Debugging
run: |
echo ${{ steps.goreleaser.outputs.artifacts }}
run: echo "version=https://github.com/taiidani/guess-my-word/releases/download/v$(date +'%Y.%m.%d')-${GITHUB_SHA::6}/guess-my-word_v$(date +'%Y.%m.%d')-${GITHUB_SHA::6}_linux_amd64.tar.gz" >> "$GITHUB_OUTPUT"

deploy:
needs: release
Expand Down
1 change: 0 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ builds:
checksum:
name_template: 'checksums.txt'
release:
draft: true
mode: append
changelog:
use: github-native

0 comments on commit bacd2de

Please sign in to comment.