Skip to content

Commit 97b1137

Browse files
committed
Added changelog and automated release process
1 parent fe0198c commit 97b1137

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

.github/workflows/release.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'Branch for release'
8+
required: true
9+
default: 'main'
10+
releaseType:
11+
description: 'Type of release'
12+
type: choice
13+
required: true
14+
default: 'patch'
15+
options:
16+
- patch
17+
- minor
18+
19+
jobs:
20+
release:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
ref: ${{ github.event.inputs.branch }}
26+
fetch-depth: 0
27+
28+
- name: Update changelog
29+
id: update_changelog
30+
uses: release-flow/keep-a-changelog-action/prepare-release@v1
31+
with:
32+
release-type: ${{ github.event.inputs.releaseType }}
33+
tag-prefix: ''
34+
35+
- name: Display version number
36+
run: |
37+
echo "New release version: ${{ steps.update_changelog.outputs.release-version }}"
38+
39+
- name: Setup PHP
40+
uses: shivammathur/setup-php@v2
41+
with:
42+
php-version: 8.1
43+
extensions: json, dom, curl, libxml, mbstring
44+
coverage: none
45+
46+
- name: Install Pint
47+
run: composer global require laravel/pint
48+
49+
- name: Run Pint
50+
run: pint
51+
52+
- name: Commit changes
53+
uses: stefanzweifel/git-auto-commit-action@v4
54+
with:
55+
branch: ${{ github.event.inputs.branch }}
56+
commit_message: Prepare Release ${{ steps.update_changelog.outputs.release-version }}
57+
58+
- name: Create the tag
59+
run: git tag ${{ steps.update_changelog.outputs.release-version }}
60+
61+
- name: Create the release
62+
uses: ncipollo/release-action@v1.10.0
63+
with:
64+
tag: ${{ steps.update_changelog.outputs.release-version }}
65+
body: ${{ steps.update_changelog.outputs.release-notes }}

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
# Changelog
2+
3+
## [Unreleased]
4+
5+
### Added
6+
7+
- Changelog with automated release process
8+
### Fixed
9+
10+
- Filesystem errors on some Windows environments when running coilpack install command
11+
- GraphQL fieldtype modifier registration bug
12+
13+
## [0.0.1] - 2022-12-29
14+
15+
### Added
16+
17+
- Initial Beta Release

0 commit comments

Comments
 (0)