Skip to content

Commit

Permalink
ci: fix build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Oct 4, 2022
1 parent c581ab9 commit 6949bee
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: "1.19"
- name: Fetch reearth-web release
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: reearth/reearth-web
version: tags/${{ needs.info.outputs.name || needs.info.outputs.tag }}
file: ${{ env.ARTIFACTS_WEB }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand All @@ -83,6 +76,13 @@ jobs:
env:
SNAPSHOT: ${{ !needs.info.outputs.tag && '--snapshot' || '' }}
GORELEASER_CURRENT_TAG: ${{ needs.info.outputs.tag || '0.0.0' }}
- name: Fetch reearth-web release
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: reearth/reearth-web
version: tags/${{ needs.info.outputs.name || needs.info.outputs.tag }}
file: ${{ env.ARTIFACTS_WEB }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Rename artifacts
if: needs.info.outputs.name
run: for f in $ARTIFACTS; do mv $f $(echo $f | sed -E 's/_0\.0\.0-SNAPSHOT-[^_]*/_${{ needs.info.outputs.name }}/'); done
Expand Down

0 comments on commit 6949bee

Please sign in to comment.