Merge pull request #1626 from digital-preservation/dependabot/maven/d… #88
This file contains hidden or 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
| name: Release to develop | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: Release to develop | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up JDK | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| - name: Cache Maven packages | |
| uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Maven Build | |
| run: | | |
| pip install requests beautifulsoup4 | |
| cd droid-help | |
| python generate_search_index.py | |
| cd .. | |
| mvn -V -B package -DnvdApiKey=${{ secrets.NVD_API_KEY }} | |
| python .github/scripts/generate_develop_release.py | |
| env: | |
| AWS_REGION: eu-west-2 | |
| AWS_ACCESS_KEY_ID: test | |
| AWS_SECRET_ACCESS_KEY: test | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |