forked from micronaut-projects/micronaut-acme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d30fe45
commit 23c0907
Showing
18 changed files
with
499 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# WARNING: Do not edit this file directly. Instead, go to: | ||
# | ||
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | ||
# | ||
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | ||
name: Maven Central Sync | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
central-sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- uses: gradle/wrapper-validation-action@v1 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Set the current release version | ||
id: release_version | ||
run: | | ||
release_version=${GITHUB_REF:11} | ||
sed -i "s/^projectVersion.*$/projectVersion\=${release_version}/" gradle.properties | ||
echo ::set-output name=release_version::${release_version} | ||
- name: Publish to Sonatype OSSRH | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} | ||
GPG_FILE: ${{ secrets.GPG_FILE }} | ||
run: echo $GPG_FILE | base64 -d > secring.gpg && ./gradlew publish closeAndReleaseRepository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# WARNING: Do not edit this file directly. Instead, go to: | ||
# | ||
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | ||
# | ||
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | ||
name: Check Dependencies | ||
on: | ||
schedule: | ||
- cron: '0 16 * * MON-FRI' | ||
jobs: | ||
check-dependencies: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Check Dependencies | ||
run: ./gradlew dependencyUpdates | ||
- name: Google Chat Notification | ||
if: failure() | ||
uses: Co-qn/google-chat-notification@releases/v1 | ||
with: | ||
name: Check Dependencies | ||
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} | ||
status: ${{ job.status }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# WARNING: Do not edit this file directly. Instead, go to: | ||
# | ||
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | ||
# | ||
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | ||
name: Update Dependencies | ||
on: | ||
schedule: | ||
- cron: '0 4 * * MON-FRI' | ||
jobs: | ||
dependency-updates: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Export Gradle Properties | ||
uses: micronaut-projects/github-actions/export-gradle-properties@master | ||
- name: Check Dependencies | ||
run: ./gradlew useLatestVersions | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v2 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
committer: GitHub <[email protected]> | ||
author: micronaut-build <[email protected]> | ||
commit-message: Update dependencies | ||
title: 'Dependency upgrades' | ||
body: Upgrades dependencies to their latest versions | ||
labels: "type: dependency-upgrade" | ||
base: ${{ env.githubBranch }} | ||
branch: dependency-updates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,55 @@ | ||
# WARNING: Do not edit this file directly. Instead, go to: | ||
# | ||
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | ||
# | ||
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | ||
name: Java CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- master | ||
- '[1-9]+.[0-9]+.x' | ||
pull_request: | ||
branches: | ||
- master | ||
- master | ||
- '[1-9]+.[0-9]+.x' | ||
jobs: | ||
build: | ||
if: github.repository != 'micronaut-projects/micronaut-project-template' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: ['8', '11', '14'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Build with Gradle | ||
run: ./gradlew check --parallel --continue | ||
- name: Publish to JFrog OSS | ||
if: success() && github.event_name == 'push' && matrix.java == '8' | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
run: ./gradlew publish docs | ||
- name: Publish to Github Pages | ||
if: success() && github.event_name == 'push' && matrix.java == '8' | ||
uses: micronaut-projects/github-pages-deploy-action@master | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
BASE_BRANCH: master | ||
BRANCH: gh-pages | ||
FOLDER: build/docs | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Optional setup step | ||
run: | | ||
[ -f ./setup.sh ] && ./setup.sh || true | ||
- name: Build with Gradle | ||
run: ./gradlew dependencyUpdates check --parallel --continue | ||
env: | ||
TESTCONTAINERS_RYUK_DISABLED: true | ||
- name: Publish to JFrog OSS | ||
if: success() && github.event_name == 'push' && matrix.java == '8' | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
run: ./gradlew publish docs | ||
- name: Publish to Github Pages | ||
if: success() && github.event_name == 'push' && matrix.java == '8' | ||
uses: micronaut-projects/github-pages-deploy-action@master | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
BASE_BRANCH: ${{ env.githubBranch }} | ||
BRANCH: gh-pages | ||
FOLDER: build/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# WARNING: Do not edit this file directly. Instead, go to: | ||
# | ||
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | ||
# | ||
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | ||
name: Sync labels | ||
on: | ||
issues: | ||
types: [opened, edited, deleted, labeled, closed] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Download labels.yml | ||
run: curl -O https://raw.githubusercontent.com/micronaut-projects/micronaut-build/master/labels.yml | ||
- uses: micnncim/action-label-syncer@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
with: | ||
manifest: labels.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# WARNING: Do not edit this file directly. Instead, go to: | ||
# | ||
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | ||
# | ||
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | ||
name: Release Notes | ||
on: | ||
pull_request: | ||
types: [closed, labeled] | ||
branches: | ||
- master | ||
- '[1-9]+.[0-9]+.x' | ||
issues: | ||
types: [closed,reopened, labeled] | ||
push: | ||
branches: | ||
- master | ||
- '[1-9]+.[0-9]+.x' | ||
paths: | ||
- ".github/workflows/release-notes.yml" | ||
jobs: | ||
release_notes: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Check if it has release drafter config file | ||
id: check_release_drafter | ||
run: | | ||
has_release_drafter=$([ -f .github/release-drafter.yml ] && echo "true" || echo "false") | ||
echo ::set-output name=has_release_drafter::${has_release_drafter} | ||
# If it has release drafter: | ||
- uses: release-drafter/release-drafter@v5 | ||
if: steps.check_release_drafter.outputs.has_release_drafter == 'true' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Otherwise: | ||
- name: Export Gradle Properties | ||
if: steps.check_release_drafter.outputs.has_release_drafter == 'false' | ||
uses: micronaut-projects/github-actions/export-gradle-properties@master | ||
- uses: micronaut-projects/github-actions/release-notes@master | ||
if: steps.check_release_drafter.outputs.has_release_drafter == 'false' | ||
id: release_notes | ||
with: | ||
branch: ${{ env.githubBranch }} | ||
- uses: ncipollo/release-action@v1 | ||
if: steps.check_release_drafter.outputs.has_release_drafter == 'false' | ||
with: | ||
allowUpdates: true | ||
commit: ${{ env.githubBranch }} | ||
draft: true | ||
name: ${{ env.title }} ${{ steps.release_notes.outputs.next_version }} | ||
tag: v${{ steps.release_notes.outputs.next_version }} | ||
bodyFile: CHANGELOG.md | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,62 @@ | ||
# WARNING: Do not edit this file directly. Instead, go to: | ||
# | ||
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | ||
# | ||
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
release: | ||
types: [published] | ||
jobs: | ||
build: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
ref: ${{ github.head_ref }} | ||
- name: Publish to Bintray | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
run: ./gradlew bintrayUpload docs | ||
- id: release_version | ||
run: echo ::set-output name=release_version::${GITHUB_REF:11} | ||
- name: Publish to Github Pages | ||
if: success() | ||
uses: micronaut-projects/github-pages-deploy-action@master | ||
env: | ||
BETA: true | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
BASE_BRANCH: master | ||
BRANCH: gh-pages | ||
FOLDER: build/docs | ||
VERSION: ${{ steps.release_version.outputs.release_version }} | ||
- name: Synchronize Maven Central | ||
if: success() | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
run: ./gradlew sWMC | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- uses: gradle/wrapper-validation-action@v1 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Set the current release version | ||
id: release_version | ||
run: echo ::set-output name=release_version::${GITHUB_REF:11} | ||
- name: Run pre-release | ||
uses: micronaut-projects/github-actions/pre-release@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish to Bintray | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
run: ./gradlew bintrayUpload docs | ||
- name: Export Gradle Properties | ||
uses: micronaut-projects/github-actions/export-gradle-properties@master | ||
- name: Publish to Github Pages | ||
if: success() | ||
uses: micronaut-projects/github-pages-deploy-action@master | ||
env: | ||
BETA: ${{ contains(steps.release_version.outputs.release_version, 'M') || contains(steps.release_version.outputs.release_version, 'RC') }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
BASE_BRANCH: ${{ env.githubBranch }} | ||
BRANCH: gh-pages | ||
FOLDER: build/docs | ||
VERSION: ${{ steps.release_version.outputs.release_version }} | ||
- name: Checkout micronaut-core | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
repository: micronaut-projects/micronaut-core | ||
ref: ${{ env.githubCoreBranch }} | ||
path: micronaut-core # Must be micronaut-core | ||
continue-on-error: true | ||
- name: Update BOM | ||
uses: micronaut-projects/github-actions/update-bom@master | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
continue-on-error: true | ||
- name: Run post-release | ||
if: success() | ||
uses: micronaut-projects/github-actions/post-release@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.