Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thepaulmacca committed Nov 13, 2024
1 parent 91b4de0 commit dbc44b4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Read version from plugin.yaml
id: read_version
run: |
version=$(grep '^version:' plugin.yaml | awk '{print $2}')
echo "::set-output name=version::$version"
- name: Create git tag
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "v${{ steps.read_version.outputs.version }}" -m "Release version ${{ steps.read_version.outputs.version }}"
git push origin "v${{ steps.read_version.outputs.version }}"

0 comments on commit dbc44b4

Please sign in to comment.