From e202782ee0d08b681ee33d9c9a108aa11849c454 Mon Sep 17 00:00:00 2001 From: Bryce Osterhaus Date: Tue, 8 Oct 2024 11:06:50 +0400 Subject: [PATCH] chore: add workflow for triggering AUI releases --- .github/workflows/aui-release-official.yml | 33 ++++++++++++++++++ .github/workflows/aui-release-snapshot.yml | 34 +++++++++++++++++++ .../projects/alloy-ui/settings-example.xml | 15 ++++++++ 3 files changed, 82 insertions(+) create mode 100644 .github/workflows/aui-release-official.yml create mode 100644 .github/workflows/aui-release-snapshot.yml create mode 100644 third-party/projects/alloy-ui/settings-example.xml diff --git a/.github/workflows/aui-release-official.yml b/.github/workflows/aui-release-official.yml new file mode 100644 index 000000000..8dade8456 --- /dev/null +++ b/.github/workflows/aui-release-official.yml @@ -0,0 +1,33 @@ +name: release-aui + +on: workflow_dispatch + +jobs: + aui-snapshot: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [0.12.18] + + steps: + - name: maven-settings-xml-action + uses: s4u/maven-settings-action@v2.3.0 + with: + servers: | + [{ + "id": "liferay-public-releases", + "username": "${{ secrets.MAVEN_USERNAME }}", + "password": "${{ secrets.MAVEN_PASSWORD }}" + }] + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm i && npm i -g gulp@^3.8.5 + working-directory: third-party/projects/alloy-ui + - run: gulp init && gulp build + working-directory: third-party/projects/alloy-ui + - run: gulp maven-publish + working-directory: third-party/projects/alloy-ui \ No newline at end of file diff --git a/.github/workflows/aui-release-snapshot.yml b/.github/workflows/aui-release-snapshot.yml new file mode 100644 index 000000000..e235d24ce --- /dev/null +++ b/.github/workflows/aui-release-snapshot.yml @@ -0,0 +1,34 @@ +name: release-aui + +on: push + +jobs: + aui-snapshot: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [0.12.18] + + steps: + - name: maven-settings-xml-action + uses: s4u/maven-settings-action@v2.3.0 + with: + servers: | + [{ + "id": "liferay-public-snapshots", + "username": "${{ secrets.MAVEN_USERNAME }}", + "password": "${{ secrets.MAVEN_PASSWORD }}" + }] + - run: cat $HOME/.m2/settings.xml + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm i && npm i -g gulp@^3.8.5 + working-directory: third-party/projects/alloy-ui + - run: gulp init && gulp build + working-directory: third-party/projects/alloy-ui + - run: gulp maven-publish-snapshot + working-directory: third-party/projects/alloy-ui \ No newline at end of file diff --git a/third-party/projects/alloy-ui/settings-example.xml b/third-party/projects/alloy-ui/settings-example.xml new file mode 100644 index 000000000..6e1012353 --- /dev/null +++ b/third-party/projects/alloy-ui/settings-example.xml @@ -0,0 +1,15 @@ + + + + liferay-public-snapshots + YOUR_SSO_USERNAME + YOUR_SSO_PASSWORD + + + liferay-public-releases + YOUR_SSO_USERNAME + YOUR_SSO_PASSWORD + + + \ No newline at end of file