From bdd4426ec97e06fb71e6a5d3f398fc5b5141ffac Mon Sep 17 00:00:00 2001 From: hoangmaihuy Date: Fri, 1 Dec 2023 17:03:49 +0700 Subject: [PATCH] feat: add release workflow --- .github/dependabot.yml | 7 +++++++ .github/workflows/build.yml | 3 --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9960204 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dcf4c1a..9345922 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,9 +61,6 @@ jobs: java-version: 8 distribution: temurin - - name: Check publishing local - run: ./millw -i __.publishLocal testRepo - - name: Publish to Maven Central run: ./millw -i io.kipp.mill.ci.release.ReleaseModule/publishAll env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..eeaab5c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Release +on: + push: + branches: + - main + tags: ["*"] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + - run: ./millw -i io.kipp.mill.ci.release.ReleaseModule/publishAll + env: + PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} + PGP_SECRET: ${{ secrets.PGP_SECRET }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}