Skip to content

Commit

Permalink
Update windows-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
celguar authored Nov 23, 2022
1 parent 68523d8 commit d3c5801
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,14 @@ jobs:
- name: Checkout CMaNGOS Classic
uses: actions/checkout@v2
with:
ref: ike3-bots
path: ${{env.REPO_DIR}}

- name: Checkout Bots
uses: actions/checkout@v2
with:
ref: master
repository: celguar/mangosbot-bots
path: "${{env.REPO_DIR}}/src/Modules/Bots"
path: "${{env.REPO_DIR}}/src/modules/Bots"

- uses: FranzDiebold/github-env-vars-action@v2
- name: Create Build Environment
Expand Down Expand Up @@ -109,8 +108,7 @@ jobs:

upload:
runs-on: windows-2022
permissions:
contents: write # for marvinpinto/action-automatic-releases to generate pre-release
permissions: write-all
needs: build

steps:
Expand All @@ -135,7 +133,7 @@ jobs:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Windows Release(${{ steps.date.outputs.date }})"
title: "Windows Release (${{ steps.date.outputs.date }})"
files: all_snapshots

notify-success:
Expand All @@ -155,10 +153,8 @@ jobs:
projectNames="CMaNGOS Classic with ike3 bots"
coreType="cmangos"
expension="classic"
coreBranch="ike3-bots"
echo "CORE_TYPE=${coreType}" >> $GITHUB_ENV
echo "EXPENSION_NAME=${expension}" >> $GITHUB_ENV
echo "CORE_BRANCH=${coreBranch}" >> $GITHUB_ENV
echo "ALL_ARCH_NAME=${expension}-with-bots.zip" >> $GITHUB_ENV
- name: Notify
uses: rjstone/[email protected]
Expand All @@ -168,7 +164,7 @@ jobs:
description: |
**Windows release success!**
details: |
- **Core branch:** ${{env.CORE_BRANCH}} - ([Commits](${{github.server_url}}/${{ github.repository }}/commits/${{env.CORE_BRANCH}}))
- **Core branch:** ${{env.GIT_BRANCH}} - ([Commits](${{github.server_url}}/${{ github.repository }}/commits/${{env.GIT_BRANCH}}))
- **Bots branch:** master - ([Commits](${{github.server_url}}/mangosbot-bots/commits/master))
- **Build log:** [actions/runs/${{github.run_id}}](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}})
- [**Download Windows Binaries**](${{github.server_url}}/${{ github.repository }}/releases/download/latest/${{env.ALL_ARCH_NAME}})
Expand All @@ -192,10 +188,8 @@ jobs:
echo "GIT_SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
coreType="cmangos"
expension="classic"
coreBranch="ike3-bots"
echo "CORE_TYPE=${coreType}" >> $GITHUB_ENV
echo "EXPENSION_NAME=${expension}" >> $GITHUB_ENV
echo "CORE_BRANCH=${coreBranch}" >> $GITHUB_ENV
- name: Notify
uses: rjstone/[email protected]
with:
Expand All @@ -204,7 +198,7 @@ jobs:
description: |
**Windows release failed!**
details: |
- **Core branch:** ${{env.CORE_BRANCH}} - ([Commits](${{github.server_url}}/${{ github.repository }}/commits/${{env.CORE_BRANCH}}))
- **Core branch:** ${{env.GIT_BRANCH}} - ([Commits](${{github.server_url}}/${{ github.repository }}/commits/${{env.GIT_BRANCH}}))
- **Bots branch:** master - ([Commits](${{github.server_url}}/mangosbot-bots/commits/master))
- **Build log:** [actions/runs/${{github.run_id}}](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}})
footer: Release fail
Expand Down

0 comments on commit d3c5801

Please sign in to comment.