Skip to content

Commit

Permalink
Actions workflow に canary リリース用の対応を追加する
Browse files Browse the repository at this point in the history
  • Loading branch information
tnamao committed Sep 27, 2024
1 parent 559a4cd commit 59edbbd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,22 @@ jobs:
gzip dist/*
- name: Release
run: |
ghr -t "${{ secrets.GITHUB_TOKEN }}" \
-u "${{ github.repository_owner }}" \
-r "sora_exporter" \
-n "${{ github.ref }}" \
--replace "${GITHUB_REF##*/}" \
dist/
VERSION=$(git describe --tag --abbrev=0)
if [[ "${VERSION}" == *"canary"* ]]; then
ghr -t "${{ secrets.GITHUB_TOKEN }}" \
-u "${{ github.repository_owner }}" \
-r "sora_exporter" \
-n "${VERSION}" \
-replace \
-prerelease \
"${GITHUB_REF##*/}" \
dist/
else
ghr -t "${{ secrets.GITHUB_TOKEN }}" \
-u "${{ github.repository_owner }}" \
-r "sora_exporter" \
-n "${VERSION}" \
-replace \
"${GITHUB_REF##*/}" \
dist/
fi
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@
- [UPDATE] Github Actions のイメージを更新する
- actions/setup-go v4 => v5
- dominikh/staticcheck-action v1.3.0 => v1.3.1
- @tnamao
- [UPDATE] CI で実行する staticcheck のバージョンを更新する
- 2023.1.6 => 2024.1.1
- @tnamao
- [ADD] CI のリリースに canary リリースの対応を追加する
- @tnamao

## 2024.6.0

Expand Down

0 comments on commit 59edbbd

Please sign in to comment.