ci: revert release script to normal state
MODIFY
.github/workflows/release.yaml
.github/workflows/release.yaml
@@ -101,138 +101,136 @@ jobs:
# git pull
# Update all project versions to the version # being released
-# - name: Update Apiman *Parent* Release Version ${{ github.event.inputs.release-version }} in pom.xml
-# run: |
-# cd apiman/parent
-# mvn clean install
-# mvn versions:set -DnewVersion=${{ github.event.inputs.release-version }} -DgenerateBackupPoms=false -DprocessAllModules=true
-# mvn clean install
-# - name: Update Apiman Release Version ${{ github.event.inputs.release-version }} in pom.xml
-# run: |
-# cd apiman
-# mvn -N versions:update-parent -DparentVersion=${{ github.event.inputs.release-version }} -DgenerateBackupPoms=false
-# mvn versions:set -DnewVersion=${{ github.event.inputs.release-version }} -DgenerateBackupPoms=false -DprocessAllModules=true
-# mvn clean install
-# - name: Update Apiman Version in Plugins Project
-# run: |
-# cd plugins
-# sed -i "s/<version.apiman>.*<\/version.apiman>/<version.apiman>${{ github.event.inputs.release-version }}<\/version.apiman>/g" pom.xml
-# - name: Update Apiman Plugins Release Version ${{ github.event.inputs.release-version }} in pom.xml
-# run: |
-# cd plugins
-# mvn -N versions:update-parent -DparentVersion=${{ github.event.inputs.release-version }} -DgenerateBackupPoms=false
-# mvn versions:set -DnewVersion=${{ github.event.inputs.release-version }} -DgenerateBackupPoms=false -DprocessAllModules=true
-# mvn clean install
+ - name: Update Apiman *Parent* Release Version ${{ github.event.inputs.release-version }} in pom.xml
+ run: |
+ cd apiman/parent
+ mvn clean install
+ mvn versions:set -DnewVersion=${{ github.event.inputs.release-version }} -DgenerateBackupPoms=false -DprocessAllModules=true
+ mvn clean install
+ - name: Update Apiman Release Version ${{ github.event.inputs.release-version }} in pom.xml
+ run: |
+ cd apiman
+ mvn -N versions:update-parent -DparentVersion=${{ github.event.inputs.release-version }} -DgenerateBackupPoms=false
+ mvn versions:set -DnewVersion=${{ github.event.inputs.release-version }} -DgenerateBackupPoms=false -DprocessAllModules=true
+ mvn clean install
+ - name: Update Apiman Version in Plugins Project
+ run: |
+ cd plugins
+ sed -i "s/<version.apiman>.*<\/version.apiman>/<version.apiman>${{ github.event.inputs.release-version }}<\/version.apiman>/g" pom.xml
+ - name: Update Apiman Plugins Release Version ${{ github.event.inputs.release-version }} in pom.xml
+ run: |
+ cd plugins
+ mvn -N versions:update-parent -DparentVersion=${{ github.event.inputs.release-version }} -DgenerateBackupPoms=false
+ mvn versions:set -DnewVersion=${{ github.event.inputs.release-version }} -DgenerateBackupPoms=false -DprocessAllModules=true
+ mvn clean install
-# # Commit changes back to GitHub
-# - name: Commit Changes for Apiman Release Version ${{ github.event.inputs.release-version }}
-# run: |
-# cd apiman
-# git add .
-# git commit -m "Automated commit for Release Version: ${{ github.event.inputs.release-version }}"
-# git push
-# - name: Commit Changes for Apiman Plugins Release Version ${{ github.event.inputs.release-version }}
-# run: |
-# cd plugins
-# git add .
-# git commit -m "Automated commit for Release Version: ${{ github.event.inputs.release-version }}"
-# git push
+ # Commit changes back to GitHub
+ - name: Commit Changes for Apiman Release Version ${{ github.event.inputs.release-version }}
+ run: |
+ cd apiman
+ git add .
+ git commit -m "Automated commit for Release Version: ${{ github.event.inputs.release-version }}"
+ git push
+ - name: Commit Changes for Apiman Plugins Release Version ${{ github.event.inputs.release-version }}
+ run: |
+ cd plugins
+ git add .
+ git commit -m "Automated commit for Release Version: ${{ github.event.inputs.release-version }}"
+ git push
-# # Create GitHub "release" with attached assets
-# - name: Signing and Archiving the Quickstart ZIPs
-# run: |
-# cd apiman
-# mkdir -p releases
-# cp distro/wildfly/target/apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip releases/.
-# cp distro/vertx/target/apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip releases/.
-# cp distro/tomcat/target/apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip releases/.
-# echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --passphrase-fd 0 --armor --detach-sign releases/apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip
-# echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --passphrase-fd 0 --armor --detach-sign releases/apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip
-# echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --passphrase-fd 0 --armor --detach-sign releases/apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip
-# - name: Create GitHub Release
-# id: create_release
-# uses: actions/create-release@latest
-# env:
-# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
-# with:
-# tag_name: ${{ github.event.inputs.release-version }}
-# release_name: ${{ github.event.inputs.release-version }}
-# - name: Upload WildFly Overlay Asset
-# uses: actions/upload-release-asset@v1
-# env:
-# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-# with:
-# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`
-# asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip
-# asset_name: apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip
-# asset_content_type: application/zip
-# - name: Upload WildFly Overlay Asset (asc)
-# uses: actions/upload-release-asset@v1
-# env:
-# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-# with:
-# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`
-# asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip.asc
-# asset_name: apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip.asc
-# asset_content_type: application/octet-stream
-# - name: Upload Vert.x Asset
-# uses: actions/upload-release-asset@v1
-# env:
-# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-# with:
-# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`
-# asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip
-# asset_name: apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip
-# asset_content_type: application/zip
-# - name: Upload Vert.x Asset (asc)
-# uses: actions/upload-release-asset@v1
-# env:
-# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-# with:
-# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`
-# asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip.asc
-# asset_name: apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip.asc
-# asset_content_type: application/octet-stream
+ # Create GitHub "release" with attached assets
+ - name: Signing and Archiving the Quickstart ZIPs
+ run: |
+ cd apiman
+ mkdir -p releases
+ cp distro/wildfly/target/apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip releases/.
+ cp distro/vertx/target/apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip releases/.
+ cp distro/tomcat/target/apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip releases/.
+ echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --passphrase-fd 0 --armor --detach-sign releases/apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip
+ echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --passphrase-fd 0 --armor --detach-sign releases/apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip
+ echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --passphrase-fd 0 --armor --detach-sign releases/apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip
+ - name: Create GitHub Release
+ id: create_release
+ uses: actions/create-release@latest
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
+ with:
+ tag_name: ${{ github.event.inputs.release-version }}
+ release_name: ${{ github.event.inputs.release-version }}
+ - name: Upload WildFly Overlay Asset
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`
+ asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip
+ asset_name: apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip
+ asset_content_type: application/zip
+ - name: Upload WildFly Overlay Asset (asc)
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`
+ asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip.asc
+ asset_name: apiman-distro-wildfly-${{ github.event.inputs.release-version }}-overlay.zip.asc
+ asset_content_type: application/octet-stream
+ - name: Upload Vert.x Asset
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`
+ asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip
+ asset_name: apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip
+ asset_content_type: application/zip
+ - name: Upload Vert.x Asset (asc)
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`
+ asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip.asc
+ asset_name: apiman-distro-vertx-${{ github.event.inputs.release-version }}.zip.asc
+ asset_content_type: application/octet-stream
-# - name: Upload Tomcat Asset
-# uses: actions/upload-release-asset@v1
-# env:
-# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-# with:
-# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`
-# asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip
-# asset_name: apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip
-# asset_content_type: application/zip
-# - name: Upload Tomcat Asset (asc)
-# uses: actions/upload-release-asset@v1
-# env:
-# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-# with:
-# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`
-# asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip.asc
-# asset_name: apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip.asc
-# asset_content_type: application/octet-stream
+ - name: Upload Tomcat Asset
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`
+ asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip
+ asset_name: apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip
+ asset_content_type: application/zip
+ - name: Upload Tomcat Asset (asc)
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`
+ asset_path: /home/runner/work/apiman/apiman/apiman/releases/apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip.asc
+ asset_name: apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip.asc
+ asset_content_type: application/octet-stream
-# # releases/apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip
-# - name: Generate Release Notes
-# run: cd apiman && gren release --token=${{ secrets.GITHUB_TOKEN }} --override
+ # releases/apiman-distro-tomcat-${{ github.event.inputs.release-version }}-overlay.zip
+ - name: Generate Release Notes
+ run: cd apiman && gren release --token=${{ secrets.GITHUB_TOKEN }} --override
# Deploy Apiman to Maven Central
-# - name: Deploy Apiman to Maven Central
-# run: |
-# cd apiman
-# mvn deploy --batch-mode -DskipTests -T2C -Prelease --settings /home/runner/.m2/settings.xml
-# cd parent
-# mvn deploy --batch-mode -DskipTests -T2C -Prelease --settings /home/runner/.m2/settings.xml
+ - name: Deploy Apiman to Maven Central
+ run: |
+ cd apiman
+ mvn deploy --batch-mode -DskipTests -T2C -Prelease --settings /home/runner/.m2/settings.xml
+ cd parent
+ mvn deploy --batch-mode -DskipTests -T2C -Prelease --settings /home/runner/.m2/settings.xml
# Tag and release Apiman Plugins
- name: Tag and Release Apiman Plugins
run: |
- cd apiman/parent && mvn -B install -DskipTests
- cd .. && mvn -B install -DskipTests
- # cd plugins
- # git tag -a -m "Tagging release ${{ github.event.inputs.release-version }}" ${{ github.event.inputs.release-version }}
- # git push origin ${{ github.event.inputs.release-version }}
+ cd plugins
+ git tag -a -m "Tagging release ${{ github.event.inputs.release-version }}" ${{ github.event.inputs.release-version }}
+ git push origin ${{ github.event.inputs.release-version }}
# Deploy Apiman Plugins to Maven Central
- name: Deploy Apiman Plugins to Maven Central
run: |

ci: revert release script to normal state