Create maven build run #2
This file contains 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 CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build and release | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'maven' | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- name: Setup semantic-release | |
run: | | |
yarn global add @conveyal/[email protected] semantic-release@15 | |
echo "$(yarn global bin)" >> $GITHUB_PATH | |
- name: Release | |
# maven-semantic-release requires "maven-settings.xml" in the workspace directory | |
run: | | |
mv ~/.m2/settings.xml maven-settings.xml | |
semantic-release --branch master --use-conveyal-workflow --skip-maven-deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |