Skip to content

Commit ac81423

Browse files
authored
Merge pull request #140 from immutable/ci/release-workflow
ci: set up release github action
2 parents 174bd07 + 891703e commit ac81423

File tree

5 files changed

+62
-63
lines changed

5 files changed

+62
-63
lines changed

.github/pr-labeler/config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
feature: 'feat/*'
2+
fix: fix/*

.github/workflows/label-pr.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: PR Labeler
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
pr-labeler:
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
if: github.event.pull_request.merged == true
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: TimonVS/pr-labeler-action@v4
19+
with:
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}
21+
configuration-path: .github/pr-labeler/config.yml

.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: 'Create Release'
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release:
10+
if: startsWith(github.ref, 'refs/tags/')
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Build Changelog
14+
id: github_release
15+
uses: mikepenz/release-changelog-builder-action@v3
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
configurationJson: |
20+
{
21+
"pr_template": "- #{{TITLE}} (##{{NUMBER}})",
22+
"categories": [
23+
{
24+
"title": "## Features",
25+
"labels": ["feature", "feat"]
26+
},
27+
{
28+
"title": "## Fixes",
29+
"labels": ["fix"]
30+
}
31+
]
32+
}
33+
- name: Create Release
34+
uses: mikepenz/[email protected]
35+
with:
36+
body: ${{steps.github_release.outputs.changelog}}
37+
38+

CHANGELOG.md

+1-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
4-
5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7-
8-
## [0.2.0] - 2023-08-18
9-
10-
### Added
11-
12-
- Ability to specify the environment on initialisation
13-
14-
## [0.1.0] - 2023-08-15
15-
16-
### Added
17-
18-
- Initial release
3+
Please see https://github.com/immutable/unity-immutable-sdk/releases

README.md

-47
Original file line numberDiff line numberDiff line change
@@ -17,53 +17,6 @@ The Immutable SDK for Unity helps you integrate your game with Immutable Passpor
1717
* [Immutable X](https://docs.immutable.com/docs/x/sdks/unity)
1818
* [Immutable zkEVM](https://docs.immutable.com/docs/zkEVM/sdks/unity)
1919

20-
## Changelog Management
21-
22-
The following headings should be used as appropriate.
23-
24-
- Added
25-
- Changed
26-
- Deprecated
27-
- Removed
28-
- Fixed
29-
30-
What follows is an example with all the change headings, for real world use only use headings when appropriate.
31-
This goes at the top of the CHANGELOG.md above the most recent release.
32-
33-
```markdown
34-
...
35-
36-
## [Unreleased]
37-
38-
### Added
39-
40-
for new features.
41-
42-
### Changed
43-
44-
for changes in existing functionality.
45-
46-
### Deprecated
47-
48-
for soon-to-be removed features.
49-
50-
### Removed
51-
52-
for now removed features.
53-
54-
### Fixed
55-
56-
for any bug fixes.
57-
58-
...
59-
```
60-
61-
The package's `package.json` will hold the value of the previous release (e.g. `src/Packages/Passport`)
62-
63-
```json
64-
"version": "0.1.0",
65-
```
66-
6720
## Contributing
6821

6922
If you would like to contribute, please read the following:

0 commit comments

Comments
 (0)