You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1011 B

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/maven-semantic-release@v4.5.0 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 }}