Maven central migration #525
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: Build Workflow | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| environment: ci | |
| runs-on: 'ubuntu-22.04' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-java@v2 | |
| with: | |
| java-version: 8 | |
| distribution: "temurin" | |
| - run: | | |
| cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import | |
| gpg --list-secret-keys --keyid-format LONG | |
| - run: | | |
| wget https://github.com/gohugoio/hugo/releases/download/v0.59.0/hugo_0.59.0_Linux-64bit.tar.gz | |
| tar xzf hugo_0.59.0_Linux-64bit.tar.gz | |
| sudo chmod +x hugo | |
| git clone https://github.com/matcornic/hugo-theme-learn.git ./manual/themes/hugo-theme-learn | |
| - run: mvn --no-transfer-progress --batch-mode --settings .mvn/settings.xml clean javadoc:jar deploy -P notest -P signed -e | |
| env: | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| GPG_KEY_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }} | |
| - run: ./hugo -s ./manual -d ../integrationtest/target/bytecoder-integrationtest | |
| - uses: JamesIves/github-pages-deploy-action@3.7.1 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH: gh-pages | |
| FOLDER: ./integrationtest/target/bytecoder-integrationtest | |
| CLEAN: true | |