Skip to content

Commit

Permalink
added release GHA job
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Mar 27, 2024
1 parent 5ed90b6 commit 15808fe
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
push:
tags:
- "**"

name: Release

jobs:
release:
name: Release

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
extensions: none
tools: none

- name: Determine tag
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Parse ChangeLog
run: bin/extract-release-notes.php ${{ env.RELEASE_TAG }} > release-notes.md

- name: Create release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.RELEASE_TAG }}
name: Symfony1 ${{ env.RELEASE_TAG }}
bodyFile: release-notes.md

0 comments on commit 15808fe

Please sign in to comment.