From 8af43ac93d38430490f3cd83f41c0a8d84f27d0c Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 22 Jan 2024 20:50:49 +0100 Subject: [PATCH] feat(ci): release using node semantic-release plugin --- .github/workflows/deploy.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 60f08db..e313bec 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,16 +1,21 @@ -name: deploy +name: deploy on: - push: - tags: "*" workflow_dispatch: jobs: ansible: runs-on: ubuntu-latest environment: production + permissions: + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - name: Release new version + run: npx semantic-release + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Run playbook uses: dawidd6/action-ansible-playbook@00765f79cffbf77b8bef397c00d492d8241502be # v2 with: @@ -20,4 +25,3 @@ jobs: requirements: requirements.yml options: | --inventory hosts - \ No newline at end of file