Skip to content

Update cargo to 1.10.11 #20

Update cargo to 1.10.11

Update cargo to 1.10.11 #20

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- master
tags:
- "*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: /root/.jbang
key: $-jbang-$
restore-keys: |
$-jbang-
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.7
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17
- name: Set up cache
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build
run: |
mvn -Dtycho.pomless.aggregator.names=plugins,features,sites clean verify
shell: bash
- name: Flatten p2 update site
uses: jbangdev/[email protected]
with:
trust: https://gist.github.com
script: https://gist.github.com/fbricon/3c718d03f55c3ceba5dea570af4af5f8
args: ./sites/org.sonatype.m2e.webby.repository
- name: Upload flat p2 update site
if: github.ref == 'refs/heads/master'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{secrets.GITHUB_TOKEN}}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
./sites/org.sonatype.m2e.webby.repository/target/flat-repository/*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./sites/org.sonatype.m2e.webby.repository/target/flat-repository/*