Skip to content

Commit

Permalink
feat: Release flow implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
seebeen committed Mar 23, 2024
1 parent 5d3dc1a commit 168a256
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.github export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.releaserc export-ignore
14 changes: 14 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", ":semanticCommits"],
"packageRules": [
{
"matchManagers": ["docker-compose", "dockerfile"],
"semanticCommitType": "feat",
"semanticCommitScope": "docker",
"labels": ["docker"],
"automerge": true,
"autoApprove": true
}
]
}
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release
on:
push:
paths-ignore:
- "**/renovate.json"
- README.md
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- name: Install NPM dependencies
run: npm install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm exec -y --package=@semantic-release/exec --package=semantic-release -c semantic-release
31 changes: 31 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"branches": [
"master",
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "zip -qr /tmp/release.zip *.yaml hxgui"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "/tmp/release.zip",
"name": "ddev-xhgui-pro-${nextRelease.version}.zip",
"label": "DDEV XHGui Pro Addon v${nextRelease.version}"
}
]
}
]
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# ddev-xhgui-pro - use XHGui with DDEV

![GitHub release (with filter)](https://img.shields.io/github/v/release/oblakdev/ddev-xhgui-pro)
![GitHub release (with filter)](https://img.shields.io/github/v/release/oblakstudio/ddev-xhgui-pro)
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
![project is maintained](https://img.shields.io/maintenance/yes/2024.svg)

Expand Down

0 comments on commit 168a256

Please sign in to comment.