Skip to content

Commit

Permalink
[Feat] release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed Feb 8, 2024
1 parent 2b2712f commit edd677e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Release'

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Read version from project config
id: read_toml
uses: SebRollen/[email protected]
with:
file: project.toml
field: project.version

- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ read_toml.outputs.value }}

- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}

4 changes: 4 additions & 0 deletions project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[project]
name = "plugin-name"
version = "0.0.1"
description = "description"

0 comments on commit edd677e

Please sign in to comment.