Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: create a GH release automatically #175

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 21 additions & 23 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,33 @@
name: Docs

on:
push:
tags:
- '*'
release:
types: [published]

jobs:
docs:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build

- name: Generate javadoc with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: javadoc
- name: Generate javadoc with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: javadoc

- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build/docs/javadoc
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build/docs/javadoc
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr-title.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint-pr-title
name: Lint PR Title

on:
pull_request_target:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Bump version
run-name: Bump ${{ github.event.inputs.version }} version
name: Release
run-name: Release ${{ github.event.inputs.version }} version

on:
workflow_dispatch:
Expand Down
5 changes: 3 additions & 2 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"commit": true,
"commitMessage": "chore: version ${version} [skip ci]",
"requireBranch": "master",
"changelog": false,
"tag": true
},
"github": {
"release": false
"release": true,
"autoGenerate": true,
"releaseName": "${version}"
},
"plugins": {
"@j-ulrich/release-it-regex-bumper": {
Expand Down