Skip to content

Commit

Permalink
ci: use semantic-release to auto-release
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru committed Aug 22, 2022
1 parent 2d86667 commit c4ed5c1
Show file tree
Hide file tree
Showing 6 changed files with 10,511 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: npx semantic-release
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,6 @@ run/
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

node_modules

debug
38 changes: 38 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"branches": [
"main",
{
name: "dev",
prerelease: true
}
],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"./release-notes-to-file.js",
{
"path": "$RELEASE-NOTES.md"
}
],
"gradle-semantic-release-plugin",
[
"@semantic-release/github",
{
"assets": [
"build/libs/**"
]
}
],
[
"@semantic-release/git",
{
"assets": [
"gradle.properties",
"package.json",
"package-lock.json"
]
}
]
]
}
Loading

0 comments on commit c4ed5c1

Please sign in to comment.