merge releases

This commit is contained in:
Kasper Juul Hermansen 2023-02-17 19:03:07 +01:00
parent fb6768a6fc
commit e4f614fdbf
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
2 changed files with 18 additions and 30 deletions

View File

@ -1,15 +1,26 @@
name: Release name: Deploy
permissions:
contents: write
on: on:
workflow_dispatch:
push: push:
tags: branches:
- v[0-9]+.* - "main"
jobs: jobs:
create-release: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 - uses: taiki-e/create-gh-release-action@v1
with: with:
# (Optional) Path to changelog. # (Optional) Path to changelog.

View File

@ -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 }}