From 684e5bc93867b7af17035574908a20b1c7069064 Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Mon, 11 Mar 2024 09:25:15 -0700 Subject: [PATCH] Remove unused cloudflare workflow (#7533) --- .github/workflows/ci.yml | 10 --- .github/workflows/cloudflare-pages.yml | 46 ---------- .github/workflows/post-release.yml | 114 ------------------------- .github/workflows/stale.yml | 25 ------ 4 files changed, 195 deletions(-) delete mode 100644 .github/workflows/cloudflare-pages.yml delete mode 100644 .github/workflows/post-release.yml delete mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be7a5741b..d3734345a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,16 +95,6 @@ jobs: - run: yarn workspace @foxglove/studio-base run storybook:build - # Chromatic only runs on pushes or pulls to our source repo - - uses: chromaui/action@v11 - if: ${{ github.event.repository.full_name == 'foxglove/studio' }} - with: - autoAcceptChanges: main - exitOnceUploaded: true - onlyChanged: true - projectToken: f50040a29fb8 # plaintext to allow building on PRs from forks - storybookBuildDir: storybook-static - integration: runs-on: ${{ matrix.os }} timeout-minutes: 10 diff --git a/.github/workflows/cloudflare-pages.yml b/.github/workflows/cloudflare-pages.yml deleted file mode 100644 index 83a8c2b0a..000000000 --- a/.github/workflows/cloudflare-pages.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Cloudflare Pages - -on: - pull_request: {} - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: false - -jobs: - deploy: - name: Deploy to Cloudflare Pages - runs-on: ubuntu-20.04 - - env: - # Environment variables that are injected into the build - ENABLE_EXPERIMENTAL_COREPACK: 1 - - steps: - - uses: actions/checkout@v4.1.1 - with: - lfs: true - submodules: true - - - uses: actions/setup-node@v4.0.2 - with: - node-version: 16.17 - - - run: corepack enable - - - run: yarn install --immutable - - - run: yarn web:build:prod - - - name: copy cloudflare config to deployment directory - run: | - cp web/.cloudflare/* web/.webpack/ - - - uses: cloudflare/pages-action@v1.5.0 - with: - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - gitHubToken: ${{ secrets.FOXGLOVEBOT_GITHUB_TOKEN }} - branch: ${{ github.head_ref || github.ref_name }} - projectName: foxglove-studio-oss - directory: web/.webpack diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml deleted file mode 100644 index b29eb8a65..000000000 --- a/.github/workflows/post-release.yml +++ /dev/null @@ -1,114 +0,0 @@ -name: Post Release - -# run after releases are published -on: - release: - types: [released] - -jobs: - bump: - name: Merge release branch - runs-on: ubuntu-20.04 - - permissions: - contents: write - - steps: - - name: Checkout release/${{ github.event.release.tag_name }} - uses: actions/checkout@v4.1.1 - with: - ref: release/${{ github.event.release.tag_name }} - lfs: true - - - name: Configure git - run: | - git config user.name "Foxglove" - git config user.email "contact@foxglove.dev" - - - id: bump-version - uses: foxglove/action-bump-version@v1 - with: - version: ${{ github.event.release.tag_name }}-dev - commit-message: Bump dev - push: true - - - name: Merge release into main - uses: octokit/request-action@v2.x - with: - route: POST /repos/{owner}/{repo}/merges - owner: foxglove - repo: studio - base: main - head: release/${{ github.event.release.tag_name }} - env: - GITHUB_TOKEN: ${{ secrets.FOXGLOVEBOT_GITHUB_TOKEN }} - - npm: - name: Publish to NPM - runs-on: ubuntu-20.04 - - steps: - - name: Checkout ${{ github.event.release.tag_name || github.event.inputs.tag_name }} - uses: actions/checkout@v4.1.1 - with: - ref: ${{ github.event.release.tag_name || github.event.inputs.tag_name }} - lfs: true - - - uses: actions/setup-node@v4.0.2 - with: - node-version: 16.17 - registry-url: https://registry.npmjs.org - - run: corepack enable yarn - - - run: yarn install --immutable - - - run: npm publish ./packages/studio - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} - - docker: - name: Publish to GHCR - runs-on: ubuntu-20.04 - - permissions: - contents: read - packages: write - - steps: - - name: Checkout ${{ github.event.release.tag_name || github.event.inputs.tag_name }} - uses: actions/checkout@v4.1.1 - with: - ref: ${{ github.event.release.tag_name || github.event.inputs.tag_name }} - lfs: true - - - name: Log in to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Generate Docker tags - id: meta - uses: docker/metadata-action@v5 - with: - images: ghcr.io/${{ github.repository }} - tags: | - type=semver,pattern={{version}},value=${{ github.event.release.tag_name || github.event.inputs.tag_name }} - type=semver,pattern={{major}}.{{minor}},value=${{ github.event.release.tag_name || github.event.inputs.tag_name }} - latest - - - name: Configure QEMU - uses: docker/setup-qemu-action@v3 - - - name: Configure Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - push: true - platforms: linux/amd64,linux/arm64 - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 74a1474e0..000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Stale - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - stale: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@v9.0.0 - with: - stale-issue-message: "This issue has been marked as stale because there has been no activity in the past 12 months. Please add a comment to keep it open." - stale-issue-label: stale - days-before-issue-stale: 365 - days-before-issue-close: 30 - - stale-pr-message: "This PR has been marked as stale because there has been no activity in the past 3 months. Please add a comment to keep it open." - stale-pr-label: stale - days-before-pr-stale: 90 - days-before-pr-close: 30 - delete-branch: true