From 1125e51d0281a907e1ae0e4c592017a2eeb71f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Tue, 2 Jul 2024 15:27:18 +0200 Subject: [PATCH] fix: release-please --- .github/workflows/release-please.yaml | 18 +++++++++ .github/workflows/release.yml | 55 ++++++++++++++------------- .talismanrc | 2 + 3 files changed, 48 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/release-please.yaml diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml new file mode 100644 index 000000000..17eac39a8 --- /dev/null +++ b/.github/workflows/release-please.yaml @@ -0,0 +1,18 @@ +on: + push: + branches: + - master + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + release-type: simple diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53ed4dace..284eee8e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,27 +1,28 @@ -name: 📦 Release -on: - push: - branches: - - master - workflow_dispatch: - -jobs: - release: - name: Release - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ssh-key: ${{ secrets.DEPLOY_KEY }} - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: "lts/*" - - name: Install additional semantic-release plugins - run: npm i --save=false semantic-release @socialgouv/releaserc @semantic-release/changelog @semantic-release/git @semantic-release/npm - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npx semantic-release --extends @socialgouv/releaserc +# disabled +# name: 📦 Release +# on: +# push: +# branches: +# - master +# workflow_dispatch: +# +# jobs: +# release: +# name: Release +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@v3 +# with: +# fetch-depth: 0 +# ssh-key: ${{ secrets.DEPLOY_KEY }} +# - name: Setup Node.js +# uses: actions/setup-node@v3 +# with: +# node-version: "lts/*" +# - name: Install additional semantic-release plugins +# run: npm i --save=false semantic-release @socialgouv/releaserc @semantic-release/changelog @semantic-release/git @semantic-release/npm +# - name: Release +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# run: npx semantic-release --extends @socialgouv/releaserc diff --git a/.talismanrc b/.talismanrc index c529e2336..b0ef71bd1 100644 --- a/.talismanrc +++ b/.talismanrc @@ -1,6 +1,8 @@ fileignoreconfig: - filename: .env.sample checksum: 0f628c927f046a71318bc0060e8a2c5e3d57b6de629da73ec57e909ad127cbdd +- filename: .github/workflows/release.yml + checksum: 3cbe51a05b23ab62e35d5a6a54b414c56c8891f776bfa254c02b7cbeab138cfa - filename: .kontinuous/env/dev/templates/sentry.sealed-secret.yaml checksum: 6b3eb493305a8c3d24402c99d7a20b01b6650e7fedb2782648c539a70adc4088 - filename: .kontinuous/env/preprod/templates/sentry.sealed-secret.yaml