Skip to content

Commit

Permalink
Tmp use pdfgen simple release (#36)
Browse files Browse the repository at this point in the history
* Add files via upload

* Delete .github/release-please-config.json

* Rename release-drafter.yml.txt to release-drafter.yml

* Create release-drafter.yml

* Delete .github/workflows/release-please.yaml

* Create release.yml

* Update release.yml
  • Loading branch information
MikAoJk authored Jan 2, 2024
1 parent 76b8ebf commit 4cc1375
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 54 deletions.
26 changes: 26 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name-template: $NEXT_PATCH_VERSION
tag-template: $NEXT_PATCH_VERSION
change-template: '- $TITLE (#$NUMBER) @$AUTHOR'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '⚠️ Breaking Changes'
labels:
- 'breaking'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
labels:
- 'chore'
- title: '⬆️ Dependency upgrades'
labels:
- 'bump'
- 'dependencies'
template: |
## What's Changed
$CHANGES
9 changes: 0 additions & 9 deletions .github/release-please-config.json

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Drafter

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45 changes: 0 additions & 45 deletions .github/workflows/release-please.yaml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish main
on:
release:
types: [published]

permissions:
packages: write

env:
NEW_VERSION: ${{ github.event.release.tag_name }}

jobs:
build:
name: Build and publish docker image
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
architecture: x64
cache: 'gradle'
- name: Build gradle artifacts
shell: bash
run: |
./gradlew shadowJar
env:
ORG_GRADLE_PROJECT_githubUser: x-access-token
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifact
run: ./gradlew -Pversion=${{ env.NEW_VERSION }} publish
env:
GITHUB_USERNAME: x-access-token
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4cc1375

Please sign in to comment.