From 496f204c84a35c7383d2bd19bb9dc0db3cea37d2 Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Tue, 4 Jun 2024 10:52:29 +0200 Subject: [PATCH 1/2] Create sentry release upon build --- .github/workflows/deploy-production.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index c6ee9f0848..3249b7c4f3 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -22,3 +22,18 @@ jobs: - name: Run deploy run: | echo "deploy production $GITHUB_SHA" | ssh -p 4840 dodona@mestra.ugent.be + - name: Get tag name + id: tag_name + run: echo "tag_name=$(date +'%Y.%m.%d-%H:%M')" >> "$GITHUB_ENV" + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Create Sentry release + uses: getsentry/action-release@v1 + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_ORG: dodona + SENTRY_PROJECT: dodona-frontend + with: + environment: production + version: ${{ env.tag_name }} From 842d95ec290b5138fce97eb248a675f58524eeca Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Tue, 4 Jun 2024 10:55:34 +0200 Subject: [PATCH 2/2] Also publish version for staging --- .github/workflows/deploy-naos.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/deploy-naos.yml b/.github/workflows/deploy-naos.yml index 00de4f325f..ac8c750639 100644 --- a/.github/workflows/deploy-naos.yml +++ b/.github/workflows/deploy-naos.yml @@ -32,3 +32,18 @@ jobs: token: ${{secrets.GITHUB_TOKEN}} label: deploy naos type: remove + - name: Get tag name + id: tag_name + run: echo "tag_name=$(date +'%Y.%m.%d-%H:%M')" >> "$GITHUB_ENV" + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Create Sentry release + uses: getsentry/action-release@v1 + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_ORG: dodona + SENTRY_PROJECT: dodona-frontend + with: + environment: staging + version: ${{ env.tag_name }}