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

Commit

Permalink
Merge pull request #646 from jaoafa/fix/release-action
Browse files Browse the repository at this point in the history
fix: release action
  • Loading branch information
book000 authored Jan 20, 2022
2 parents 5d39292 + 427bbe2 commit 4ef6bc9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true

outputs:
version: ${{ steps.tag_version.outputs.new_tag }}
release-url: ${{ steps.create_release.outputs.upload_url }}
version: ${{ steps.tag_version.outputs.new_version }}
release-upload-url: ${{ steps.create_release.outputs.upload_url }}
release-html-url: ${{ steps.create_release.outputs.html_url }}

steps:
- name: Checkout
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
- name: Sed Version
run: |
sed -r -i "1,/version/s#<version>(.+?)</version>#<version>${{ steps.tag_version.outputs.new_tag }}</version>#" pom.xml
sed -r -i "1,/version/s#<version>(.+?)</version>#<version>${{ steps.tag_version.outputs.new_version }}</version>#" pom.xml
git diff
- name: Set PROJECT_NAME
Expand All @@ -62,7 +63,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
release_name: ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}

- name: Upload Release Asset
Expand Down Expand Up @@ -121,9 +122,11 @@ jobs:
# :white_check_mark: デプロイが完了しました
プルリクエストがマージされたため、本番環境へのデプロイを行いました。
バージョンは `${{ fromJson(steps.deployRequest.outputs.response).version }}` です。稼働中バージョンの確認は Minecraft サーバ内で `/ver MyMaid4` を実行することで確認できます。
バージョンは `${{ needs.release.outputs.version }}` です。稼働中バージョンの確認は Minecraft サーバ内で `/ver MyMaid4` を実行することで確認できます。
反映は本番環境の再起動後ですので、アクティブログインユーザーの同意を得て再起動するか、3時の自動再起動を待ってください。
${{ needs.release.outputs.release-html-url }}
- name: Is Failed Deploy
if: ${{ fromJson(steps.deployRequest.outputs.response).status == 'ERROR' }}
uses: peter-evans/create-or-update-comment@v1
Expand Down

0 comments on commit 4ef6bc9

Please sign in to comment.