Skip to content

Use local jbang script #35

Use local jbang script

Use local jbang script #35

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build P2 repository
on:
push:
branches:
- main
tags:
- "*.*.*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
id: java-8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- uses: cactuslab/maven-toolchains-xml-action@v1
with:
toolchains: |
[
{"type":"jdk", "jdkVersion": "8", "jdkHome": "${{steps.java-8.outputs.path}}", "provides": { "id":"JavaSE-1.8", "vendor":"Eclipse" } }
]
- name: Build with Maven
run: mvn -B deploy --file pom.xml -Pflat-repo --batch-mode
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload flat p2 update site
if: github.ref == 'refs/heads/main'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{secrets.GITHUB_TOKEN}}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
releng/aev.update/target/flat-repository/*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
releng/aev.update/target/flat-repository/*