From d5f0e5e3833beb1179c0ab8284458b96bd1fefb3 Mon Sep 17 00:00:00 2001 From: Torsten Egenolf Date: Thu, 23 May 2024 18:05:14 +0200 Subject: [PATCH] feat(ci): removed OAS and unused context json --- .github/workflows/ci-main.yml | 4 -- .github/workflows/ci-openapi.yml | 67 -------------------------------- .github/workflows/ci-release.yml | 1 - 3 files changed, 72 deletions(-) delete mode 100644 .github/workflows/ci-openapi.yml diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index faf52d6..ef4e986 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -27,10 +27,6 @@ jobs: APP_LATEST_REV=$(git rev-list --tags --max-count=1) APP_LATEST_TAG=$(git describe --tags ${APP_LATEST_REV} 2> /dev/null || echo 0.0.0) echo "APP_VERSION=${APP_LATEST_TAG}-${APP_SHA}" >> ${GITHUB_ENV} - - name: copyContext - run: |- - rm ./src/main/resources/static/context.json - echo '${{ secrets.CONTEXT_FILE }}' > ./src/main/resources/static/context.json - name: mvn run: |- mvn versions:set \ diff --git a/.github/workflows/ci-openapi.yml b/.github/workflows/ci-openapi.yml deleted file mode 100644 index ef64dd0..0000000 --- a/.github/workflows/ci-openapi.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: ci-openapi -on: - workflow_dispatch: - release: - types: - - created -jobs: - release: - runs-on: ubuntu-22.04 - steps: - - uses: actions/setup-java@v2 - with: - java-version: 17 - distribution: adopt - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - uses: actions/cache@v2 - with: - path: | - ~/.m2/repository - key: ${{ runner.os }}-${{ hashFiles('**/pom.xml') }} - - name: version - run: >- - APP_SHA=$(git rev-parse --short ${GITHUB_SHA}); - APP_TAG=${GITHUB_REF/refs\/tags\/} - APP_VERSION=${APP_TAG}; - echo "APP_SHA=${APP_SHA}" >> ${GITHUB_ENV}; - echo "APP_TAG=${APP_TAG}" >> ${GITHUB_ENV}; - echo "APP_VERSION=${APP_VERSION}" >> ${GITHUB_ENV}; - - name: mvn - run: >- - mvn versions:set - --batch-mode - --file ./pom.xml - --settings ./settings.xml - --define newVersion="${APP_VERSION}"; - mvn clean verify - --batch-mode - --file ./pom.xml - --settings ./settings.xml - --define app.packages.username="${APP_PACKAGES_USERNAME}" - --define app.packages.password="${APP_PACKAGES_PASSWORD}"; - env: - APP_PACKAGES_USERNAME: ${{ github.actor }} - APP_PACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }} - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: openapi.json - path: target/openapi.json - - name: Checkout OpenApi Doc Branch - uses: actions/checkout@v2 - with: - ref: openapi-doc - - name: Delete existing openapi.json - run: rm -f openapi.json - - name: Download openapi.json - uses: actions/download-artifact@v2 - with: - name: openapi.json - - name: Commit and Push changes - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git commit -a --allow-empty -m "Update OpenAPI JSON" - git push diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 480cc8d..eb49f05 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -60,7 +60,6 @@ jobs: run: |- gh release upload ${APP_VERSION} \ --clobber \ - ./target/openapi.json#openapi-${APP_VERSION}.json \ ./target/generated-resources/licenses.xml#licenses-${APP_VERSION}.xml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}