From 2d5917fcb0aa90b7f53eac1af4d37910807d1612 Mon Sep 17 00:00:00 2001 From: Bryce Osterhaus Date: Tue, 8 Oct 2024 11:15:12 +0400 Subject: [PATCH] chore: add workflow for triggering AUI releases --- .github/workflows/aui-release-snapshot.yml | 34 +++++++++++++++++++ .../projects/alloy-ui/settings-example.xml | 15 ++++++++ 2 files changed, 49 insertions(+) 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-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