From b3413b01444e4ffbc962c98ea1426f8385d1434f Mon Sep 17 00:00:00 2001 From: Fred Bricon Date: Mon, 4 Jul 2022 10:11:47 +0200 Subject: [PATCH] Add release step Signed-off-by: Fred Bricon --- .github/workflows/ci.yaml | 9 +++++++++ README.md | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 77eaa30..9092cea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,6 +4,8 @@ on: push: branches: - master + tags: + - "v*.*.*" jobs: build: @@ -29,5 +31,12 @@ jobs: automatic_release_tag: "latest" prerelease: true title: "Development Build" + files: | + org.jboss.tools.pde.sourcelookup.site/target/flat-repository/* + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: files: | org.jboss.tools.pde.sourcelookup.site/target/flat-repository/* \ No newline at end of file diff --git a/README.md b/README.md index ecefa52..0eae1af 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # PDE Source Lookup -[![Build](https://github.com/fbricon/pde.source.lookup/actions/workflows/ci.yaml/badge.svg)](https://github.com/fbricon/pde.source.lookup/actions/workflows/ci.yaml) +[![CI Build](https://github.com/fbricon/pde.source.lookup/actions/workflows/ci.yaml/badge.svg)](https://github.com/fbricon/pde.source.lookup/actions/workflows/ci.yaml) Proof of Concept to automatically fetch missing source bundles from enabled p2 repositories, when opening a bundle jar (similar to m2e). It's also possible to fetch all sources from the `Plug-in Dependencies` classpath container, with a right-click and selecting `Download Bundle Sources`.