mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-11-26 00:42:42 +01:00
parent
f61afa73df
commit
d365a9f8e2
25
.github/workflows/create-release.yml
vendored
25
.github/workflows/create-release.yml
vendored
@ -1,26 +1,15 @@
|
|||||||
name: Deploy
|
name: Release
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- "main"
|
- v[0-9]+.*
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
create-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- uses: actions/checkout@v3
|
||||||
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.
|
||||||
|
23
.github/workflows/create-tag.yml
vendored
Normal file
23
.github/workflows/create-tag.yml
vendored
Normal file
@ -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 }}
|
Loading…
Reference in New Issue
Block a user