From d365a9f8e2bf9ea03d120c9fe757851adc0d1dc7 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 17 Feb 2023 19:07:55 +0100 Subject: [PATCH] Revert "merge releases" This reverts commit e4f614fdbf2608d7bc174b912de6d74d8ca00235. --- .github/workflows/create-release.yml | 25 +++++++------------------ .github/workflows/create-tag.yml | 23 +++++++++++++++++++++++ 2 files changed, 30 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/create-tag.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 71f4545..69806f1 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -1,26 +1,15 @@ -name: Deploy +name: Release +permissions: + contents: write on: - workflow_dispatch: push: - branches: - - "main" + tags: + - v[0-9]+.* jobs: - deploy: + create-release: 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 }} + - uses: actions/checkout@v3 - 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 new file mode 100644 index 0000000..03e4c1f --- /dev/null +++ b/.github/workflows/create-tag.yml @@ -0,0 +1,23 @@ +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 }}