Skip to content

Commit e9df0bd

Browse files
committed
changelog and deployment actions
1 parent d9b723d commit e9df0bd

3 files changed

Lines changed: 66 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [released, prereleased]
5+
jobs:
6+
publish:
7+
name: Release build and publish
8+
runs-on: macOS-latest
9+
steps:
10+
- name: Check out code
11+
uses: actions/checkout@v4
12+
- name: Set up JDK 21
13+
uses: actions/setup-java@v4
14+
with:
15+
java-version: 21
16+
distribution: 'temurin'
17+
- name: Publish to MavenCentral
18+
# the publication plugin does not support it
19+
# see: https://github.com/gradle/gradle/issues/22779
20+
run: ./gradlew publishToMavenCentral --no-configuration-cache
21+
env:
22+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
23+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
24+
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
25+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
26+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }}

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Triggers on version tags like v1.0.0, v2.1.3, etc.
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Create Release
20+
uses: softprops/action-gh-release@v2
21+
# TODO may need to validate this!
22+
with:
23+
tag_name: ${{ github.ref_name }}
24+
name: Release ${{ github.ref_name }}
25+
draft: false
26+
prerelease: false
27+
generate_release_notes: true

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
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.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.1.0] - 2025-06-13
9+
10+
This is the initial release of Kulid!
11+
12+
### Added
13+
- Ability to generate a ULID, either with the current time or any valid timestamp.

0 commit comments

Comments
 (0)