Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
feat(gha): release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed Oct 22, 2023
1 parent 2ef7d14 commit 7043ecd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
tags:
- '*'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

defaults:
run:
shell: bash

permissions: write-all

jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update major git tag
run: |
set -o pipefail
git tag --force "$(grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+\(.*\)\?$' <<< ${GITHUB_REF#refs/*/} | sed 's/^v\([0-9]\+\)\..*/v\1/')"
git push --tag --force
note:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: gh release create ${GITHUB_REF#refs/*/} --generate-notes

0 comments on commit 7043ecd

Please sign in to comment.