From e4f614fdbf2608d7bc174b912de6d74d8ca00235 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 17 Feb 2023 19:03:07 +0100 Subject: [PATCH] merge releases --- .github/workflows/create-release.yml | 25 ++++++++++++++++++------- .github/workflows/create-tag.yml | 23 ----------------------- 2 files changed, 18 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/create-tag.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 69806f1..71f4545 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -1,15 +1,26 @@ -name: Release -permissions: - contents: write +name: Deploy on: + workflow_dispatch: push: - tags: - - v[0-9]+.* + branches: + - "main" jobs: - create-release: + deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout Code + uses: actions/checkout@v3 + - name: Get Next Version + id: semver + uses: ietf-tools/semver-action@v1 + with: + token: ${{ github.token }} + branch: main + - uses: rickstaa/action-create-tag@v1 + with: + tag: ${{ steps.semver.outputs.next }} + message: ${{ steps.semver.outputs.next }} + github_token: ${{ github.token }} - uses: taiki-e/create-gh-release-action@v1 with: # (Optional) Path to changelog. diff --git a/.github/workflows/create-tag.yml b/.github/workflows/create-tag.yml deleted file mode 100644 index 03e4c1f..0000000 --- a/.github/workflows/create-tag.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Deploy -on: - workflow_dispatch: - push: - branches: - - "main" -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v3 - - name: Get Next Version - id: semver - uses: ietf-tools/semver-action@v1 - with: - token: ${{ github.token }} - branch: main - - uses: rickstaa/action-create-tag@v1 - with: - tag: ${{ steps.semver.outputs.next }} - message: ${{ steps.semver.outputs.next }} - github_token: ${{ github.token }}