From 100590f0cfb433579894d0b00143329098824fdf Mon Sep 17 00:00:00 2001 From: guyeisenbach Date: Sun, 25 Feb 2024 12:44:51 +0200 Subject: [PATCH] Auto deploy --- .github/workflows/cd.yaml | 31 +++++++++++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/cd.yaml diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml new file mode 100644 index 00000000..758eb308 --- /dev/null +++ b/.github/workflows/cd.yaml @@ -0,0 +1,31 @@ + on: + push: +# branches: +# - master + jobs: + deploy: + name: Deploy to maven + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'adopt' + + - name: Import GPG key + run: echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import + env: + # To generate a new GPG key run the following command in your local terminal: + # gpg --export-secret-keys -a "" | base64 + GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} + - name: Log GPG keys + run: gpg --list-secret-keys --keyid-format LONG + +# - name: Deploy a new version +# run: mvn clean deploy -P build-extras,sign --settings deploy/mvnsettings.xml +# env: +# GPG_KEY_NAME: ${{ secrets. diff --git a/CHANGELOG.md b/CHANGELOG.md index ac9df244..b54201d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Bugfix - Sensitive headers are now case-insensitive. - Block page HTML align with spec. - Automatically running e2e tests on pull request. +- Automatically deploying a new release on merge to master. ## [v6.11.0](https://github.com/PerimeterX/perimeterx-java-sdk/compare/6.11.0...HEAD) (2024-02-18) * Added base64-encoded request http method to captcha script query parameters on block pages