From cf2604192d12b8647ed9abd18fef8152b62bf722 Mon Sep 17 00:00:00 2001 From: sakulstra Date: Tue, 10 Oct 2023 10:22:14 +0200 Subject: [PATCH] chore: upgrade ci to use release-please --- .github/workflows/dispatch-draft-release.yml | 12 ------- .github/workflows/release-please.yml | 34 ++++++++++++++++++++ .github/workflows/test-release.yml | 22 ------------- 3 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/dispatch-draft-release.yml create mode 100644 .github/workflows/release-please.yml delete mode 100644 .github/workflows/test-release.yml diff --git a/.github/workflows/dispatch-draft-release.yml b/.github/workflows/dispatch-draft-release.yml deleted file mode 100644 index de180c9..0000000 --- a/.github/workflows/dispatch-draft-release.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Draft release - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} - cancel-in-progress: true - -on: - workflow_dispatch: - -jobs: - draft-release: - uses: bgd-labs/github-workflows/.github/workflows/draft-release.yml@main diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..58f6c25 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,34 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please +jobs: + test-node: + uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main + + release-please: + runs-on: ubuntu-latest + outputs: + releaseCreated: ${{ steps.release.outputs.release_created }} + steps: + - uses: google-github-actions/release-please-action@v3 + id: release + with: + release-type: node + package-name: aave-cli + pull-request-header: 'I have created a release' + + release-node: + uses: bgd-labs/github-workflows/.github/workflows/release-node.yml@main + if: ${{ needs.release-please.outputs.releaseCreated }} + needs: + - test-node + - release-please + secrets: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml deleted file mode 100644 index f2c09ad..0000000 --- a/.github/workflows/test-release.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Test & release - -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: true - -on: - push: - branches: - - main - -jobs: - test-node: - uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main - release: - uses: bgd-labs/github-workflows/.github/workflows/release.yml@main - needs: test-node - release-node: - uses: bgd-labs/github-workflows/.github/workflows/release-node.yml@main - needs: test-node - secrets: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}