From 50c17406d295113a57220ba9a91d2ea14f4425fb Mon Sep 17 00:00:00 2001 From: lwih Date: Thu, 1 Feb 2024 11:30:40 +0100 Subject: [PATCH] CI - fix release job --- .github/workflows/release.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e615f8ab..e9d4a25b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,8 @@ name: "[Release] Mirror push to gitlab" on: - push: - branches: [ "main" ] + # push: + # branches: [ "main" ] release: types: [ published ] workflow_dispatch: @@ -19,20 +19,20 @@ jobs: with: fetch-depth: 0 - # - name: Get frontend version - # uses: avides/actions-project-version-check@v1.4.0 - # id: frontend_version - # with: - # token: ${{ secrets.GITHUB_TOKEN }} - # file-to-check: frontend/package.json - # only-return-version: true - # - # - name: Upload Frontend sourcemaps - # uses: ./.github/actions/upload-sourcemaps - # with: - # SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - # VERSION: ${{ steps.frontend_version.outputs.version }} - #test + - name: Get frontend version + uses: avides/actions-project-version-check@v1.4.0 + id: frontend_version + with: + token: ${{ secrets.GITHUB_TOKEN }} + file-to-check: frontend/package.json + only-return-version: true + + - name: Upload Frontend sourcemaps + uses: ./.github/actions/upload-sourcemaps + with: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + VERSION: ${{ steps.frontend_version.outputs.version }} + - uses: yesolutions/mirror-action@master with: REMOTE: https://gitlab-sml.din.developpement-durable.gouv.fr/rapportnav-v2/rapportnav_v2.git