Skip to content

Commit

Permalink
chore: automatically publish new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vlsi committed Nov 14, 2023
1 parent 399f83b commit 46a0d4d
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 35 deletions.
31 changes: 31 additions & 0 deletions .github/actions/publish-update-site/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish update site
description: Publishes the updated update-site
inputs:
update_site_token:
required: true
description: GitHub token for publishing
runs:
using: "composite"
steps:
- name: Checkout update site
uses: actions/checkout@v4
with:
repository: vlsi/mat-calcite-plugin-update-site
path: MatCalciteRepository/target/mat-calcite-plugin-update-site
token: ${{ inputs.UPDATE_SITE_TOKEN }}
- name: Publish
shell: bash
run: |
cd MatCalciteRepository/target
# git clone https://github.com/vlsi/mat-calcite-plugin-update-site.git
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
rm -rf mat-calcite-plugin-update-site/ea
mkdir -p mat-calcite-plugin-update-site/ea
# Copy "repository" recursively as "ea" folder
cp -R repository mat-calcite-plugin-update-site/ea
cd mat-calcite-plugin-update-site
git add -A
git commit -m "Update site for ${{ github.sha }}"
git push
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Cache local Maven repository
uses: actions/cache@v3
with:
Expand All @@ -41,4 +41,6 @@ jobs:
- name: Test
run: |
./mvnw --color=always -B verify
- name: Publish Eclipse update site
if: matrix.os == 'ubuntu-latest'
uses: ./.github/actions/publish-update-site
82 changes: 49 additions & 33 deletions MatCalciteTargetPlatform/MatCalciteTargetPlatform.target
Original file line number Diff line number Diff line change
@@ -1,36 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.5"?>

<target name="eclipse 4.5.0" includeMode="feature">
<locations>
<location includeDependencyDepth="infinite" includeDependencyScopes="compile,provided,runtime" includeSource="true" label="Maven Central" missingManifest="generate" type="Maven">
<dependencies>
<dependency>
<groupId>net.minidev</groupId>
<artifactId>accessors-smart</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>org.apache.calcite</groupId>
<artifactId>calcite-core</artifactId>
<version>1.36.0</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.1.3-jre</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>
</location>
</locations>
<target includeMode="feature" name="eclipse 4.5.0">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<repository location="https://download.eclipse.org/releases/2022-12"/>
<unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.p2.user.ui.feature.group" version="0.0.0"/>
<unit id="org.eclipse.rcp.feature.group" version="0.0.0"/>
</location>
<location includeDependencyDepth="infinite" includeDependencyScopes="compile,provided,runtime" includeSource="true" label="Maven Central" missingManifest="generate" type="Maven">
<dependencies>
<dependency>
<groupId>net.minidev</groupId>
<artifactId>accessors-smart</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>org.apache.calcite</groupId>
<artifactId>calcite-core</artifactId>
<version>1.36.0</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.1.3-jre</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>
<instructions><![CDATA[
-reproducible: true
-noextraheaders: true
Bundle-Name: Bundle derived from maven artifact ${mvnGroupId}:${mvnArtifactId}:${mvnVersion}
version: ${version_cleanup;${mvnVersion}}
Bundle-SymbolicName: wrapped.${mvnGroupId}.${mvnArtifactId}
Bundle-Version: ${version}
Import-Package: *;resolution:=optional
Export-Package: *;version="${version}";-noimport:=true
DynamicImport-Package: *
]]></instructions>
</location>
</locations>
</target>

0 comments on commit 46a0d4d

Please sign in to comment.