Skip to content

Bump cxf.version from 4.2.0 to 4.2.1 #179

Bump cxf.version from 4.2.0 to 4.2.1

Bump cxf.version from 4.2.0 to 4.2.1 #179

Workflow file for this run

name: Release DROID
on:
pull_request:
types:
- closed
permissions:
contents: write
pull-requests: write
env:
BRANCH_NAME: version-bump-${{ github.run_id }}${{ github.run_attempt }}
AWS_REGION: eu-west-2
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
jobs:
maven-release:
runs-on: ubuntu-latest
if: ${{ github.base_ref == 'main' && github.event.pull_request.merged == true && github.event.pull_request.title != 'Version bump' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Apache Maven Central
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: 'temurin'
java-version: '21'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- run: |
cp .github/scripts/settings.xml ~/.m2/settings.xml
git config user.name tna-da-bot
git config user.email "181243999+tna-da-bot@users.noreply.github.com"
git checkout -b $BRANCH_NAME
git push -u origin $BRANCH_NAME
- run: |
pip install beautifulsoup4
cd droid-help
python generate_search_index.py
cd ..
- run: mvn -q clean install -DnvdApiKey=${{ secrets.NVD_API_KEY }}
- run: mvn -q -B release:prepare -Prelease-sign-artifacts
- run: mvn -B release:perform -DskipTests -Prelease-sign-artifacts
- run: |
curl -X POST "https://api.github.com/repos/digital-preservation/droid/pulls" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-d "{\"title\": \"Version bump\",\"head\": \"$BRANCH_NAME\",\"base\": \"main\"}"
github-release:
runs-on: ubuntu-latest
if: ${{ github.base_ref == 'main' && github.event.pull_request.merged == true && github.event.pull_request.title != 'Version bump' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: 'temurin'
java-version: '21'
- run: |
export NEW_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//')
cd droid-parent
mvn versions:set -DnewVersion=$NEW_VERSION
cd ..
pip install beautifulsoup4
cd droid-help
python generate_search_index.py
cd ..
mvn clean package -DnvdApiKey=${{ secrets.NVD_API_KEY }}
pip install requests
python .github/scripts/generate_release.py $NEW_VERSION
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_REGION: eu-west-2
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test