From d4a83a69c6a8cd3b18387093e729ad89264f1bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Meadows-J=C3=B6nsson?= Date: Wed, 15 Jul 2026 22:24:36 +0200 Subject: [PATCH 1/2] Archive Preview repository --- README.md | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 334e441..bb014f8 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,11 @@ # Preview -Webbased display for the contents of a Hex release. +This repository is archived. Hex Preview is maintained as part of +[hexpm/hexpm](https://github.com/hexpm/hexpm): its web interface and background +processing both run in the Hexpm application. -## Contributing - -### Setup - -1. Run `mix setup` to install Hex and NPM dependencies -2. Run `mix test` -3. Run `mix phx.server` and visit [http://localhost:4005/](http://localhost:4005/) - -### Test routes -After running `mix setup`, two packages will be available for testing locally. - -1. [Decimal 2.0.0](http://localhost:4005/preview/decimal/2.0.0) -2. [Ecto 0.2.0](http://localhost:4005/preview/ecto/0.2.0) - -### Updating dependencies - -If Hex or NPM dependencies are outdated run `mix setup` again. +Infrastructure for the Preview object bucket and its public edge routes remains +in [hexpm/hexpm-ops](https://github.com/hexpm/hexpm-ops). ## License From dc524620d59c8b18ded4c1dc4aa3394c487c5170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Meadows-J=C3=B6nsson?= Date: Thu, 16 Jul 2026 00:20:38 +0200 Subject: [PATCH 2/2] Disable archived Preview CI --- .github/workflows/main.yml | 74 -------------------------------------- README.md | 3 -- 2 files changed, 77 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 93557c2..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,74 +0,0 @@ -name: CI - -on: [push, pull_request] - -permissions: - contents: read - -jobs: - test: - runs-on: ubuntu-24.04 - env: - MIX_ENV: test - steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - with: - persist-credentials: false - - - uses: erlef/setup-elixir@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1 - with: - otp-version: 27.3.4.12 - elixir-version: 1.18.1 - - - run: mix deps.get - - run: mix deps.compile - - run: mix compile --warnings-as-errors - - run: mix test - - run: mix format --check-formatted - - run: mix deps.unlock --check-unused - - docker: - name: Docker - runs-on: ubuntu-24.04-arm - permissions: - contents: "read" - id-token: "write" - env: - IMAGE_NAME: "preview" - PROJECT_ID: "hexpm-prod" - SERVICE_ACCOUNT: ${{ secrets.GCLOUD_SERVICE_ACCOUNT }} - WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCLOUD_WORKFLOW_IDENTITY_POOL_PROVIDER }} - steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - with: - persist-credentials: false - - name: Set short git commit SHA - run: echo "COMMIT_SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 - - name: Google auth - id: auth - uses: "google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093" # v3.0.0 - if: ${{ github.event_name != 'pull_request' && env.SERVICE_ACCOUNT != '' }} - with: - token_format: "access_token" - project_id: ${{ env.PROJECT_ID }} - service_account: ${{ env.SERVICE_ACCOUNT }} - workload_identity_provider: ${{ env.WORKLOAD_IDENTITY_PROVIDER }} - - name: Docker Auth - id: docker-auth - uses: "docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0" # v4.4.0 - if: ${{ github.event_name != 'pull_request' && env.SERVICE_ACCOUNT != '' }} - with: - registry: gcr.io - username: "oauth2accesstoken" - password: "${{ steps.auth.outputs.access_token }}" - - name: Build and push - id: build - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 - with: - platforms: linux/arm64 - tags: gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE_NAME }}:${{ env.COMMIT_SHORT_SHA }} - push: ${{ github.event_name != 'pull_request' && env.SERVICE_ACCOUNT != '' }} - cache-from: type=gha - cache-to: type=gha,mode=max diff --git a/README.md b/README.md index bb014f8..e573662 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,6 @@ This repository is archived. Hex Preview is maintained as part of [hexpm/hexpm](https://github.com/hexpm/hexpm): its web interface and background processing both run in the Hexpm application. -Infrastructure for the Preview object bucket and its public edge routes remains -in [hexpm/hexpm-ops](https://github.com/hexpm/hexpm-ops). - ## License Copyright 2020 Six Colors AB