From 096c09bd81583b5754f8207772dd75218eb4585d Mon Sep 17 00:00:00 2001 From: jules Ivanic Date: Tue, 29 Aug 2023 17:26:18 +0400 Subject: [PATCH] Remove `release-docs` CI step --- .github/workflows/ci.yml | 59 ---------------------------------------- build.sbt | 1 + 2 files changed, 1 insertion(+), 59 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41ada89..b0a3f94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,62 +193,3 @@ jobs: PGP_SECRET: ${{ secrets.PGP_SECRET }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - release-docs: - name: Release Docs - runs-on: ubuntu-latest - continue-on-error: false - needs: - - release - if: ${{ ((github.event_name == 'release') && (github.event.action == 'published')) || (github.event_name == 'workflow_dispatch') }} - steps: - - name: Git Checkout - uses: actions/checkout@v3.6.0 - with: - fetch-depth: '0' - - name: Install libuv - run: sudo apt-get update && sudo apt-get install -y libuv1-dev - - name: Setup Scala - uses: actions/setup-java@v3.12.0 - with: - distribution: temurin - java-version: '8' - check-latest: true - - name: Cache Dependencies - uses: coursier/cache-action@v6 - - name: Setup NodeJs - uses: actions/setup-node@v3 - with: - node-version: 16.x - registry-url: https://registry.npmjs.org - - name: Publish Docs to NPM Registry - run: sbt docs/publishToNpm - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - notify-docs-release: - name: Notify Docs Release - runs-on: ubuntu-latest - continue-on-error: false - needs: - - release-docs - if: ${{ (github.event_name == 'release') && (github.event.action == 'published') }} - steps: - - name: Git Checkout - uses: actions/checkout@v3.6.0 - with: - fetch-depth: '0' - - name: notify the main repo about the new release of docs package - run: | - PACKAGE_NAME=$(cat docs/package.json | grep '"name"' | awk -F'"' '{print $4}') - PACKAGE_VERSION=$(npm view $PACKAGE_NAME version) - curl -L \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: token ${{ secrets.PAT_TOKEN }}"\ - https://api.github.com/repos/zio/zio/dispatches \ - -d '{ - "event_type":"update-docs", - "client_payload":{ - "package_name":"'"${PACKAGE_NAME}"'", - "package_version": "'"${PACKAGE_VERSION}"'" - } - }' diff --git a/build.sbt b/build.sbt index b3c28aa..7b46f97 100644 --- a/build.sbt +++ b/build.sbt @@ -15,6 +15,7 @@ inThisBuild( scala3 := "3.3.0", crossScalaVersions -= scala212.value, ciEnabledBranches := Seq("main"), + ciPostReleaseJobs := Seq.empty, Test / parallelExecution := false, Test / fork := true, run / fork := true,