diff --git a/.github/workflows/build_all_platforms.yml b/.github/workflows/build_all_platforms.yml index cde546d5..6f575fba 100644 --- a/.github/workflows/build_all_platforms.yml +++ b/.github/workflows/build_all_platforms.yml @@ -367,3 +367,39 @@ jobs: run: | bundle install bundle exec fastlane deploy groups:${{ inputs.FLAVOR }} pkg:${{ github.workspace }}/LunaSea.pkg + + discord_android: + name: Update Discord about Android Deployment + uses: CometTools/LunaSea/.github/workflows/update_discord.yml@master + needs: deploy_android + if: always() + with: + FLAVOR: internal + STATUS: ${{ job.status }} + PLATFORM: Android + secrets: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + + discord_ios: + name: Update Discord about iOS Deployment + uses: CometTools/LunaSea/.github/workflows/update_discord.yml@master + needs: deploy_ios + if: always() + with: + FLAVOR: internal + STATUS: ${{ job.status }} + PLATFORM: iOS + secrets: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + + discord_macos: + name: Update Discord about macOS Deployment + uses: CometTools/LunaSea/.github/workflows/update_discord.yml@master + needs: deploy_macos + if: always() + with: + FLAVOR: internal + STATUS: ${{ job.status }} + PLATFORM: macOS + secrets: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_alpha.yml b/.github/workflows/release_alpha.yml index 3528cf03..72dda375 100644 --- a/.github/workflows/release_alpha.yml +++ b/.github/workflows/release_alpha.yml @@ -29,14 +29,3 @@ jobs: MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} MATCH_SSH_PRIVATE_KEY: ${{ secrets.MATCH_SSH_PRIVATE_KEY }} - - discord: - name: Update Discord Channel - uses: CometTools/LunaSea/.github/workflows/update_discord.yml@master - needs: build - if: always() - with: - FLAVOR: alpha - STATUS: ${{ job.status }} - secrets: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_beta.yml b/.github/workflows/release_beta.yml index fe028daa..0438d6d7 100644 --- a/.github/workflows/release_beta.yml +++ b/.github/workflows/release_beta.yml @@ -29,14 +29,3 @@ jobs: MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} MATCH_SSH_PRIVATE_KEY: ${{ secrets.MATCH_SSH_PRIVATE_KEY }} - - discord: - name: Update Discord Channel - uses: CometTools/LunaSea/.github/workflows/update_discord.yml@master - needs: build - if: always() - with: - FLAVOR: beta - STATUS: ${{ job.status }} - secrets: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/release_internal.yml b/.github/workflows/release_internal.yml index d23a417a..f9fd49e1 100644 --- a/.github/workflows/release_internal.yml +++ b/.github/workflows/release_internal.yml @@ -7,6 +7,7 @@ on: jobs: build: + name: Internal Release uses: CometTools/LunaSea/.github/workflows/build_all_platforms.yml@master with: @@ -29,14 +30,3 @@ jobs: MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} MATCH_SSH_PRIVATE_KEY: ${{ secrets.MATCH_SSH_PRIVATE_KEY }} - - discord: - name: Update Discord Channel - uses: CometTools/LunaSea/.github/workflows/update_discord.yml@master - needs: build - if: always() - with: - FLAVOR: internal - STATUS: ${{ job.status }} - secrets: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/update_discord.yml b/.github/workflows/update_discord.yml index 4d834640..4dbe3c65 100644 --- a/.github/workflows/update_discord.yml +++ b/.github/workflows/update_discord.yml @@ -9,6 +9,9 @@ on: FLAVOR: required: true type: string + PLATFORM: + required: true + type: string secrets: DISCORD_WEBHOOK: @@ -16,14 +19,13 @@ on: jobs: run: - name: Update Discord Channel + name: Send Discord Update runs-on: ubuntu-latest steps: - - name: Discord Message - uses: sarisia/actions-status-discord@v1 + - uses: sarisia/actions-status-discord@v1 with: - description: "Build and deploy `${{ inputs.FLAVOR }}` build" + description: "[${{ inputs.PLATFORM }}] Build and deploy `${{ inputs.FLAVOR }}` build" status: ${{ inputs.STATUS }} - title: '[Release] ${{ inputs.FLAVOR }}' + title: '[${{inputs.PLATFORM }}/release] ${{ inputs.FLAVOR }}' webhook: ${{ secrets.DISCORD_WEBHOOK }}