-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: automatically publish new versions
- Loading branch information
Showing
4 changed files
with
108 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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: | | ||
PLUGIN_VERSION=$(./mvnw help:evaluate -q -DforceStdout -D"expression=project.version") | ||
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" | ||
if [ -z ${i##*-SNAPSHOT} ]; then | ||
REPO=ea | ||
else | ||
REPO=stable | ||
fi | ||
DIR=mat-calcite-plugin-update-site/$REPO | ||
rm -rf $DIR | ||
# Copy "repository" recursively as "ea" or "stable" folder | ||
cp -R repository $DIR | ||
cd mat-calcite-plugin-update-site | ||
git add -A | ||
git commit -m "Update site for ${PLUGIN_VERSION}, ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}" | ||
git push | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters