Skip to content

Commit

Permalink
Release 24
Browse files Browse the repository at this point in the history
  • Loading branch information
albilu committed Dec 18, 2024
1 parent cb46675 commit 6319beb
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 71 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'
cache: maven

Expand Down Expand Up @@ -72,20 +72,26 @@ jobs:
# env:
# GITHUB_TOKEN: ${{ github.token }}

- name: Build with RELEASE210
run: |
mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE210 -Dnext.version=RELEASE210
env:
GITHUB_TOKEN: ${{ github.token }}
# - name: Build with RELEASE210
# run: |
# mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE210 -Dnext.version=RELEASE210
# env:
# GITHUB_TOKEN: ${{ github.token }}
#
# - name: Build with RELEASE220
# run: |
# mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE220 -Dnext.version=RELEASE220
# env:
# GITHUB_TOKEN: ${{ github.token }}

- name: Build with RELEASE220
run: |
mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE220 -Dnext.version=RELEASE220
env:
GITHUB_TOKEN: ${{ github.token }}
# - name: Build with RELEASE230
# run: |
# mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE230 -Dnext.version=RELEASE230
# env:
# GITHUB_TOKEN: ${{ github.token }}

- name: Build with RELEASE230
- name: Build with RELEASE240
run: |
mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE230 -Dnext.version=RELEASE230
mvn -B clean install -P dev -Dnetbeans.release.version=RELEASE240 -Dnext.version=RELEASE240
env:
GITHUB_TOKEN: ${{ github.token }}
128 changes: 74 additions & 54 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'
cache: maven
#Maven Publish to Github
Expand All @@ -61,17 +61,6 @@ jobs:
run: |
sed -i "s/OpenIDE-Module-Specification-Version:.*/OpenIDE-Module-Specification-Version: ${{ env.RELEASE_VERSION }}/" src/main/nbm/manifest.mf
- name: Create Release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ github.event.repository.name }} ${{ env.RELEASE_VERSION }}
tag_name: ${{ env.RELEASE_VERSION }}
env:
GITHUB_TOKEN: ${{ github.token }}

# - name: Build with RELEASE130
# run: |
# mvn -B clean deploy -Dnetbeans.release.version=RELEASE130 -Dnext.version=RELEASE130-${{ env.RELEASE_VERSION }}
Expand Down Expand Up @@ -225,62 +214,93 @@ jobs:
# env:
# GITHUB_TOKEN: ${{ github.token }}

- name: Build with RELEASE210
run: |
mvn -B clean deploy -Dnetbeans.release.version=RELEASE210 -Dnext.version=RELEASE210-${{ env.RELEASE_VERSION }}
echo "SIZE_20=$(wc -c target/nbm/python-RELEASE210-${{ env.RELEASE_VERSION }}.nbm | awk '{print $1}')" >> $GITHUB_ENV
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
GITHUB_TOKEN: ${{ github.token }}

- name: Attach RELEASE210 NBM
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: target/nbm/python-RELEASE210-${{ env.RELEASE_VERSION }}.nbm
asset_name: python-RELEASE210-${{ env.RELEASE_VERSION }}.nbm
asset_content_type: application/gzip
env:
GITHUB_TOKEN: ${{ github.token }}
# - name: Build with RELEASE210
# run: |
# mvn -B clean deploy -Dnetbeans.release.version=RELEASE210 -Dnext.version=RELEASE210-${{ env.RELEASE_VERSION }}
# echo "SIZE_20=$(wc -c target/nbm/python-RELEASE210-${{ env.RELEASE_VERSION }}.nbm | awk '{print $1}')" >> $GITHUB_ENV
# env:
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
# MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
# GITHUB_TOKEN: ${{ github.token }}
#
# - name: Attach RELEASE210 NBM
# uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: target/nbm/python-RELEASE210-${{ env.RELEASE_VERSION }}.nbm
# asset_name: python-RELEASE210-${{ env.RELEASE_VERSION }}.nbm
# asset_content_type: application/gzip
# env:
# GITHUB_TOKEN: ${{ github.token }}
#
# - name: Build with RELEASE220
# run: |
# mvn -B clean deploy -Dnetbeans.release.version=RELEASE220 -Dnext.version=RELEASE220-${{ env.RELEASE_VERSION }}
# echo "SIZE_20=$(wc -c target/nbm/python-RELEASE220-${{ env.RELEASE_VERSION }}.nbm | awk '{print $1}')" >> $GITHUB_ENV
# env:
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
# MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
# GITHUB_TOKEN: ${{ github.token }}
#
# - name: Attach RELEASE220 NBM
# uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: target/nbm/python-RELEASE220-${{ env.RELEASE_VERSION }}.nbm
# asset_name: python-RELEASE220-${{ env.RELEASE_VERSION }}.nbm
# asset_content_type: application/gzip
# env:
# GITHUB_TOKEN: ${{ github.token }}
#
# - name: Build with RELEASE230
# run: |
# mvn -B clean deploy -Dnetbeans.release.version=RELEASE230 -Dnext.version=RELEASE230-${{ env.RELEASE_VERSION }}
# echo "SIZE_20=$(wc -c target/nbm/python-RELEASE230-${{ env.RELEASE_VERSION }}.nbm | awk '{print $1}')" >> $GITHUB_ENV
# env:
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
# MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
# GITHUB_TOKEN: ${{ github.token }}
#
# - name: Attach RELEASE230 NBM
# uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: target/nbm/python-RELEASE230-${{ env.RELEASE_VERSION }}.nbm
# asset_name: python-RELEASE230-${{ env.RELEASE_VERSION }}.nbm
# asset_content_type: application/gzip
# env:
# GITHUB_TOKEN: ${{ github.token }}

- name: Build with RELEASE220
- name: Build with RELEASE240
run: |
mvn -B clean deploy -Dnetbeans.release.version=RELEASE220 -Dnext.version=RELEASE220-${{ env.RELEASE_VERSION }}
echo "SIZE_20=$(wc -c target/nbm/python-RELEASE220-${{ env.RELEASE_VERSION }}.nbm | awk '{print $1}')" >> $GITHUB_ENV
mvn -B clean deploy -Dnetbeans.release.version=RELEASE240 -Dnext.version=RELEASE240-${{ env.RELEASE_VERSION }}
echo "SIZE_20=$(wc -c target/nbm/python-RELEASE240-${{ env.RELEASE_VERSION }}.nbm | awk '{print $1}')" >> $GITHUB_ENV
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
GITHUB_TOKEN: ${{ github.token }}

- name: Attach RELEASE220 NBM
uses: actions/upload-release-asset@v1
- name: Create Release
uses: actions/create-release@v1
id: create_release
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: target/nbm/python-RELEASE220-${{ env.RELEASE_VERSION }}.nbm
asset_name: python-RELEASE220-${{ env.RELEASE_VERSION }}.nbm
asset_content_type: application/gzip
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Build with RELEASE230
run: |
mvn -B clean deploy -Dnetbeans.release.version=RELEASE230 -Dnext.version=RELEASE230-${{ env.RELEASE_VERSION }}
echo "SIZE_20=$(wc -c target/nbm/python-RELEASE230-${{ env.RELEASE_VERSION }}.nbm | awk '{print $1}')" >> $GITHUB_ENV
draft: false
prerelease: false
release_name: ${{ github.event.repository.name }} ${{ env.RELEASE_VERSION }}
tag_name: ${{ env.RELEASE_VERSION }}
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
GITHUB_TOKEN: ${{ github.token }}

- name: Attach RELEASE230 NBM
- name: Attach RELEASE240 NBM
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: target/nbm/python-RELEASE230-${{ env.RELEASE_VERSION }}.nbm
asset_name: python-RELEASE230-${{ env.RELEASE_VERSION }}.nbm
asset_path: target/nbm/python-RELEASE240-${{ env.RELEASE_VERSION }}.nbm
asset_name: python-RELEASE240-${{ env.RELEASE_VERSION }}.nbm
asset_content_type: application/gzip
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>11</source>
<target>11</target>
<source>17</source>
<target>17</target>
<fork>true</fork>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
Expand Down Expand Up @@ -802,7 +802,7 @@
<properties>
<keystore>target/keystore</keystore>
<netbeans.release.version>RELEASE230</netbeans.release.version>
<next.version>1.9.3</next.version>
<next.version>1.9.4</next.version>
<git.url>https://github.com/albilu/netbeansPython</git.url>
<git.link>https://github.com/albilu/netbeansPython.git</git.link>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
6 changes: 6 additions & 0 deletions ppuc/24/updates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE module_updates PUBLIC "-//NetBeans//DTD Autoupdate Catalog 2.8//EN" "http://www.netbeans.org/dtds/autoupdate-catalog-2_8.dtd">
<module_updates timestamp="00/00/00/18/12/2024">
<module codenamebase="io.github.albilu.python" distribution="https://github.com/albilu/netbeansPython/releases/download/1.9.4/python-RELEASE240-1.9.4.nbm" downloadsize="133405377" homepage="https://github.com/albilu/netbeansPython" moduleauthor="albilu" needsrestart="true" releasedate="2024/12/18">
<manifest OpenIDE-Module="io.github.albilu.python" AutoUpdate-Show-In-Client="true" OpenIDE-Module-Display-Category="Editing" OpenIDE-Module-Implementation-Version="RELEASE240-1.9.4" OpenIDE-Module-Name="Python" OpenIDE-Module-Requires="org.openide.windows.WindowManager" OpenIDE-Module-Short-Description="Netbeans Support for Python" OpenIDE-Module-Specification-Version="1.9.4"/>
</module>
</module_updates>

0 comments on commit 6319beb

Please sign in to comment.