Skip to content

👷 Update CI to only deploy packages to GitHub Package repo from master #138

👷 Update CI to only deploy packages to GitHub Package repo from master

👷 Update CI to only deploy packages to GitHub Package repo from master #138

Workflow file for this run

name: Fluent Forms CI
on:
push:
paths:
- 'fluentforms/**'
- '.github/workflows/fluentforms-ci.yml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17 for Shared Runner
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
cache: 'maven'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven
run: mvn -B package --file fluentforms
- name: Publish to GitHub Packages Apache Maven
if: github.ref == 'refs/heads/master' || github.ref == 'refs/tags/*' # Only run on main branch or tags
run: mvn -B deploy -s $GITHUB_WORKSPACE/settings.xml --file fluentforms
env:
GITHUB_TOKEN: ${{ github.token }}