Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
chore: fix release workflow, fix build comment [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Nov 1, 2021
1 parent fc93f2d commit cfc79a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.txt
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Get info
id: info
# The tag name should be retrieved lazily, as tagging may be delayed.
Expand Down Expand Up @@ -120,6 +122,8 @@ jobs:
args: release --rm-dist --snapshot
env:
GORELEASER_CURRENT_TAG: 0.0.0
- name: Rename artifacts
run: rename 's/^dist\/reearth-backend_0.0.0-SNAPSHOT-.+?_(.+)/dist\/reearth-backend_nightly_$1/s' dist/reearth-backend_*.*
- name: Create GitHub release for nightly
if: "!needs.main.outputs.new_tag"
uses: ncipollo/release-action@v1
Expand Down
2 changes: 1 addition & 1 deletion cmd/reearth/debug.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !release
//go:build !release

package main

Expand Down
2 changes: 1 addition & 1 deletion cmd/reearth/release.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build release
//go:build release

package main

Expand Down

0 comments on commit cfc79a0

Please sign in to comment.