From 8fc94920c2d5d3d2562bc83d47b4d0235b838599 Mon Sep 17 00:00:00 2001 From: Matthew Walsh Date: Wed, 17 Jan 2024 13:35:48 +0000 Subject: [PATCH] Remove documentation workflows Update codeowners. --- .github/CODEOWNERS | 2 +- .github/workflows/main.yml | 1 - .github/workflows/publish-docs.yml | 42 ------------------------- .github/workflows/publish-main-docs.yml | 16 ---------- .github/workflows/publish-rc-docs.yml | 28 ----------------- .github/workflows/publish-release.yml | 24 -------------- 6 files changed, 1 insertion(+), 112 deletions(-) delete mode 100644 .github/workflows/publish-docs.yml delete mode 100644 .github/workflows/publish-main-docs.yml delete mode 100644 .github/workflows/publish-rc-docs.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 50bea79..fbe03f3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,4 +1,4 @@ # Lines starting with '#' are comments. # Each line is a file pattern followed by one or more owners. -* @MetaMask/devs +* @MetaMask/confirmations-system-team diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8fa96e6..b17972d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -73,5 +73,4 @@ jobs: uses: ./.github/workflows/publish-release.yml secrets: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - PUBLISH_DOCS_TOKEN: ${{ secrets.PUBLISH_DOCS_TOKEN }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml deleted file mode 100644 index de54471..0000000 --- a/.github/workflows/publish-docs.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Publish docs to GitHub Pages - -on: - workflow_call: - inputs: - destination_dir: - required: true - type: string - secrets: - PUBLISH_DOCS_TOKEN: - required: true - -jobs: - publish-docs-to-gh-pages: - name: Publish docs to GitHub Pages - runs-on: ubuntu-latest - environment: github-pages - permissions: - contents: write - steps: - - name: Ensure `destination_dir` is not empty - if: ${{ inputs.destination_dir == '' }} - run: exit 1 - - name: Checkout the repository - uses: actions/checkout@v3 - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version-file: '.nvmrc' - cache: 'yarn' - - name: Install npm dependencies - run: yarn --immutable - - name: Run build script - run: yarn build:docs - - name: Deploy to `${{ inputs.destination_dir }}` directory of `gh-pages` branch - uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935 - with: - # This `PUBLISH_DOCS_TOKEN` needs to be manually set per-repository. - # Look in the repository settings under "Environments", and set this token in the `github-pages` environment. - personal_token: ${{ secrets.PUBLISH_DOCS_TOKEN }} - publish_dir: ./docs - destination_dir: ${{ inputs.destination_dir }} diff --git a/.github/workflows/publish-main-docs.yml b/.github/workflows/publish-main-docs.yml deleted file mode 100644 index b9bbbef..0000000 --- a/.github/workflows/publish-main-docs.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Publish main branch docs to GitHub Pages - -on: - push: - branches: main - -jobs: - publish-to-gh-pages: - name: Publish docs to `staging` directory of `gh-pages` branch - permissions: - contents: write - uses: ./.github/workflows/publish-docs.yml - with: - destination_dir: staging - secrets: - PUBLISH_DOCS_TOKEN: ${{ secrets.PUBLISH_DOCS_TOKEN }} diff --git a/.github/workflows/publish-rc-docs.yml b/.github/workflows/publish-rc-docs.yml deleted file mode 100644 index 802cf6b..0000000 --- a/.github/workflows/publish-rc-docs.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Publish release candidate docs to GitHub Pages - -on: - push: - branches: 'release/**' - -jobs: - get-release-version: - name: Get release version - runs-on: ubuntu-latest - outputs: - release-version: ${{ steps.release-name.outputs.RELEASE_VERSION }} - steps: - - name: Extract release version from branch name - id: release-name - run: | - BRANCH_NAME='${{ github.ref_name }}' - echo "RELEASE_VERSION=v${BRANCH_NAME#release/}" >> "$GITHUB_OUTPUT" - publish-to-gh-pages: - name: Publish docs to `rc-${{ needs.get-release-version.outputs.release-version }}` directory of `gh-pages` branch - permissions: - contents: write - uses: ./.github/workflows/publish-docs.yml - needs: get-release-version - with: - destination_dir: rc-${{ needs.get-release-version.outputs.release-version }} - secrets: - PUBLISH_DOCS_TOKEN: ${{ secrets.PUBLISH_DOCS_TOKEN }} diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 3378dc5..6f85148 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -7,8 +7,6 @@ on: required: true SLACK_WEBHOOK_URL: required: true - PUBLISH_DOCS_TOKEN: - required: true jobs: publish-release: @@ -97,25 +95,3 @@ jobs: - id: get-release-version shell: bash run: ./scripts/get.sh ".version" "RELEASE_VERSION" - - publish-release-to-gh-pages: - needs: get-release-version - name: Publish docs to `${{ needs.get-release-version.outputs.RELEASE_VERSION }}` directory of `gh-pages` branch - permissions: - contents: write - uses: ./.github/workflows/publish-docs.yml - with: - destination_dir: ${{ needs.get-release-version.outputs.RELEASE_VERSION }} - secrets: - PUBLISH_DOCS_TOKEN: ${{ secrets.PUBLISH_DOCS_TOKEN }} - - publish-release-to-latest-gh-pages: - needs: publish-npm - name: Publish docs to `latest` directory of `gh-pages` branch - permissions: - contents: write - uses: ./.github/workflows/publish-docs.yml - with: - destination_dir: latest - secrets: - PUBLISH_DOCS_TOKEN: ${{ secrets.PUBLISH_DOCS_TOKEN }}