Skip to content

Commit

Permalink
Switch CI to upload p2 repo to GH releases
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <[email protected]>
  • Loading branch information
fbricon committed Jun 30, 2022
1 parent 326541d commit fea15e3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 17 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ jobs:
cache: 'maven'

- name: Build with Maven
run: ./mvnw -B verify

- name: Deploy p2 repo to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ github.token }}
publish_dir: ./org.jboss.tools.pde.sourcelookup.site/target/repository
destination_dir: updates
run: ./mvnw -B verify -Pflat-repo

- name: Deploy 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: |
org.jboss.tools.pde.sourcelookup.site/target/flat-repository/*
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,21 @@ Because the `Plug-in Dependencies` classpath container [doesn't keep new attache
the PDE Source Lookup plugin automatically reattaches thoses sources upon restart.
This behavior can be disabled in `Preferences` > `Plug-in Development` > `Source Lookup`.

## installation
## Installation
- Requires an Eclipse Mars.2 or more recent installation (might work on older versions)
- Requires Java 8 to run.
- In Eclipse, either:
- go to `Help` > `Eclipse Marketplace…` to search PDE Source Lookup from the [Eclipse Marketplace](https://marketplace.eclipse.org/content/pde-source-lookup)
- go to `Help` > `Install New Software...` and add one of these p2 repositories:
- Stable: https://fbricon.github.io/pde.source.lookup/updates/
- CI: http://download.jboss.org/jbosstools/builds/staging/pde.source.lookup/all/repo/

_PDE Source Lookup_ is available in the [Eclipse Marketplace](https://marketplace.eclipse.org/content/pde-source-lookup). Drag the following button to your running Eclipse workspace. (⚠️ *Requires the Eclipse Marketplace Client*)

[![Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client](https://marketplace.eclipse.org/sites/all/themes/solstice/public/images/marketplace/btn-install.svg)](http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=5391163 "Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client")

Alternatively, in Eclipse:

- open Help > Install New Software...
- work with: `https://github.com/fbricon/pde.source.lookup/releases/download/latest/`
- expand the category and select the `PDE Source Lookup` Eclipse Feature
- proceed with the installation
- restart Eclipse

## License
Licensed under the [EPL-2.0](https://www.eclipse.org/legal/epl-2.0/).
27 changes: 27 additions & 0 deletions org.jboss.tools.pde.sourcelookup.site/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,31 @@

<artifactId>org.jboss.tools.pde.sourcelookup.site</artifactId>
<packaging>eclipse-repository</packaging>
<build>
<plugins>
<plugin>
<groupId>dev.jbang</groupId>
<artifactId>jbang-maven-plugin</artifactId>
<version>0.0.7</version>
<executions>
<execution>
<id>run</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<script>https://gist.github.com/fbricon/3c718d03f55c3ceba5dea570af4af5f8</script>
<args>
<arg>${project.basedir}</arg>
</args>
<trusts>
<trust>https://gist.github.com</trust>
</trusts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</licenses>

<properties>
<tycho-version>2.4.0</tycho-version>
<tycho-version>2.7.3</tycho-version>
<tycho-extras-version>${tycho-version}</tycho-extras-version>
<tycho.testArgLine>-Xmx800m -noverify ${tycho.test.platformArgs}</tycho.testArgLine>
<tycho.test.platformArgs></tycho.test.platformArgs>
Expand All @@ -54,9 +54,9 @@
</repository>

<repository>
<id>2021-06</id>
<id>eclipse</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/2021-06</url>
<url>http://download.eclipse.org/releases/2022-06</url>
</repository>
</repositories>
<build>
Expand Down

0 comments on commit fea15e3

Please sign in to comment.