build(deps): bump org.apache.maven.plugins:maven-enforcer-plugin from 3.2.1 to 3.5.0 #245
Workflow file for this run
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 | |
on: | |
push: | |
branches: main | |
tags: 'v*' | |
pull_request: | |
branches: main | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y libegl1 libopengl0 libxcb-cursor0 | |
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin | |
sudo ln -s /opt/calibre/ebook-convert /usr/local/bin/ | |
sudo apt-get install -y fonts-ipaexfont | |
npm install -g svgexport | |
npm ci | |
./mvnw install -DskipTests -B | |
- name: Test and build ebook files | |
run: | | |
npm test | |
./mvnw verify -B | |
npm run epub | |
npm run mobi | |
npm run pdf | |
- name: Release ebook files | |
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2 | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: | | |
what-is-maven.epub | |
what-is-maven.mobi | |
what-is-maven.pdf | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ebooks | |
path: | | |
what-is-maven.epub | |
what-is-maven.mobi | |
what-is-maven.pdf |