Skip to content

Commit

Permalink
Update build-and-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
breadbyte authored Jul 3, 2024
1 parent 4f260e2 commit 23c0bcb
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ jobs:
env:
DOTNET_NOLOGO: true

- name: Rename Binary
run: |
mv ${{ env.built-executable-path }} ${{ env.PROJECT }}-${{ env.build-version-info }}-${{ matrix.target }}${{ (startsWith(matrix.target, 'win') && '.exe') || ' ' }}
- name: Create Release
uses: ncipollo/release-action@v1.14.0
with:
Expand All @@ -81,6 +85,19 @@ jobs:
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
replacesArtifacts: false

- name: Sentry Release
uses: getsentry/action-release@v1.7.0
# Sentry Releases will only be created in the MCCTeam repository, since it needs Sentry secrets.
if: ${{ github.repository == 'MCCTeam/Minecraft-Console-Client' }}

env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
dist: ${{ format('{0}-{1}', env.date, github.run_number) }}

fetch-translations:
strategy:
Expand Down Expand Up @@ -198,7 +215,7 @@ jobs:
uses: ncipollo/release-action@v1.14.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: ${{ env.built-executable-path }}
artifacts: ${{ env.target-out-path }}/mcc-${{ matrix.target }}.zip
tag: ${{ format('{0}-{1}', env.date, github.run_number) }}
name: ${{ env.build-version-info }}-${{ github.run_number }}
generateReleaseNotes: true
Expand All @@ -210,6 +227,9 @@ jobs:

- name: Sentry Release
uses: getsentry/action-release@v1.7.0
# Sentry Releases will only be created in the MCCTeam repository, since it needs Sentry secrets.
if: ${{ github.repository == 'MCCTeam/Minecraft-Console-Client' }}

env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
Expand Down

0 comments on commit 23c0bcb

Please sign in to comment.