Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #44 from trueberryless-org/netlify

remove unnecessary files for Netlify

authored by

trueberryless and committed by
GitHub
02f80b2f 5b9f6d49

-308
-11
.dockerignore
··· 1 - Dockerfile 2 - .dockerignore 3 - **/node_modules/ 4 - **/.git 5 - README.md 6 - npm-debug.log 7 - .coverage 8 - .coverage.* 9 - .env 10 - .aws 11 - .next
-218
.github/workflows/deployment.yaml
··· 1 - name: Deployment 2 - 3 - on: 4 - push: 5 - branches: [main] 6 - workflow_dispatch: 7 - 8 - concurrency: 9 - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} 10 - cancel-in-progress: true 11 - 12 - env: 13 - REGISTRY: docker.io 14 - IMAGE_OWNER: trueberryless 15 - IMAGE_NAME: starlight-sidebar-topics-dropdown 16 - NODE_VERSION: 20 17 - 18 - jobs: 19 - changes: 20 - name: Filter 21 - runs-on: ubuntu-latest 22 - outputs: 23 - docs: ${{ steps.filter.outputs.docs }} 24 - steps: 25 - - name: Check out the repo 26 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 27 - 28 - - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 29 - id: filter 30 - with: 31 - filters: | 32 - docs: 33 - - 'docs/**' 34 - 35 - changesets: 36 - name: Changesets 37 - runs-on: ubuntu-latest 38 - outputs: 39 - hasChangesets: ${{ steps.changesets.outputs.hasChangesets }} 40 - permissions: 41 - contents: write 42 - pull-requests: write 43 - steps: 44 - - name: Generate GitHub App token 45 - id: generate_token 46 - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 47 - with: 48 - app_id: ${{ secrets.BOT_APP_ID }} 49 - private_key: ${{ secrets.BOT_PRIVATE_KEY }} 50 - 51 - - name: Checkout Repo 52 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 53 - 54 - - name: Setup PNPM 55 - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 56 - 57 - - name: Setup Node 58 - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 59 - with: 60 - node-version: ${{ env.NODE_VERSION }} 61 - cache: "pnpm" 62 - 63 - - name: Install Dependencies 64 - run: pnpm i 65 - 66 - - name: Create Release Pull Request 67 - uses: changesets/action@06245a4e0a36c064a573d4150030f5ec548e4fcc # v1.4.10 68 - id: changesets 69 - with: 70 - version: pnpm run version 71 - commit: "[ci] release" 72 - title: "[ci] release" 73 - env: 74 - GITHUB_TOKEN: ${{ steps.generate_token.outputs.token}} 75 - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 76 - 77 - - name: Get published version 78 - if: steps.changesets.outputs.hasChangesets == 'true' 79 - run: | 80 - git checkout changeset-release/main 81 - VERSION=$(node -p "require('./packages/starlight-sidebar-topics-dropdown/package.json').version") 82 - NAME=$(node -p "require('./packages/starlight-sidebar-topics-dropdown/package.json').name") 83 - git commit --amend -m "[ci] release $NAME v$VERSION" --no-edit 84 - git push origin changeset-release/main:changeset-release/main --force 85 - 86 - image-tag: 87 - name: Image Tag 88 - runs-on: ubuntu-latest 89 - outputs: 90 - IMAGE_TAG: ${{ env.IMAGE_TAG }} 91 - steps: 92 - - name: Check out the repo 93 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 94 - 95 - - name: Read version from package.json 96 - id: get_version 97 - run: | 98 - VERSION=$(jq -r '.version' docs/package.json) 99 - echo "IMAGE_TAG=$VERSION" >> $GITHUB_ENV 100 - 101 - deployment: 102 - needs: [changes, changesets, image-tag] 103 - if: > 104 - ( 105 - needs.changesets.outputs.hasChangesets == 'false' && 106 - ( 107 - contains(github.event.head_commit.message, 'deploy') || 108 - contains(github.event.head_commit.message, '[ci] release') 109 - ) 110 - ) || 111 - github.event_name == 'workflow_dispatch' 112 - runs-on: ubuntu-latest 113 - permissions: 114 - contents: write 115 - steps: 116 - - name: Check out the repo 117 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 118 - with: 119 - fetch-depth: 0 120 - 121 - - name: Setup PNPM 122 - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 123 - with: 124 - package_json_file: ./docs/package.json 125 - 126 - - name: Setup Node 127 - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 128 - with: 129 - node-version: ${{ env.NODE_VERSION }} 130 - cache: pnpm 131 - cache-dependency-path: ./pnpm-lock.yaml 132 - 133 - - name: Install dependencies 134 - run: pnpm install 135 - shell: bash 136 - working-directory: ./docs 137 - 138 - - name: Build Website 139 - run: pnpm run build 140 - shell: bash 141 - working-directory: ./docs 142 - 143 - - name: Set up Docker Buildx 144 - uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0 145 - 146 - - name: Log in to Docker Hub 147 - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 148 - with: 149 - username: ${{ secrets.DOCKER_USERNAME }} 150 - password: ${{ secrets.DOCKER_PASSWORD }} 151 - 152 - - name: Extract metadata (tags, labels) for Docker 153 - id: meta 154 - uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0 155 - with: 156 - images: ${{ env.REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }} 157 - 158 - - name: Build and push Docker image 159 - uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0 160 - with: 161 - context: . 162 - push: true 163 - tags: | 164 - ${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ needs.image-tag.outputs.IMAGE_TAG }} 165 - ${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:latest 166 - labels: ${{ steps.meta.outputs.labels }} 167 - 168 - - name: Update deployment.yaml file 169 - run: | 170 - yq eval '.spec.template.spec.containers[0].image = "${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ needs.image-tag.outputs.IMAGE_TAG }}"' -i manifest/deployment.yaml 171 - 172 - - uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5.1.0 173 - with: 174 - commit_message: update deployment.json container image (automated) 175 - 176 - release: 177 - name: Release 178 - needs: [image-tag, deployment] 179 - runs-on: ubuntu-latest 180 - permissions: 181 - contents: write 182 - steps: 183 - - name: Check out the repo 184 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 185 - 186 - - id: extract-changelog 187 - uses: sean0x42/markdown-extract@7b185cbe85263116bbf741e739e7198ba86465dc # v2.1.0 188 - with: 189 - file: docs/CHANGELOG.md 190 - pattern: ${{ needs.image-tag.outputs.IMAGE_TAG }} 191 - 192 - - uses: ncipollo/release-action@v1 193 - id: create_release 194 - with: 195 - tag: ${{ env.IMAGE_NAME }}-docs@${{ needs.image-tag.outputs.IMAGE_TAG }} 196 - makeLatest: false 197 - body: ${{ steps.extract-changelog.outputs.markdown }} 198 - skipIfReleaseExists: true 199 - 200 - - name: Check if release was created 201 - id: check_release 202 - run: | 203 - if [ -z "${{ steps.create_release.outputs.html_url }}" ]; then 204 - echo "RELEASE_SKIPPED=true" >> $GITHUB_ENV 205 - else 206 - echo "RELEASE_SKIPPED=false" >> $GITHUB_ENV 207 - fi 208 - 209 - - name: Discord notification 210 - if: env.RELEASE_SKIPPED == 'false' 211 - env: 212 - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }} 213 - uses: Ilshidur/action-discord@0c4b27844ba47cb1c7bee539c8eead5284ce9fa9 # 0.3.2 214 - with: 215 - args: | 216 - # ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }} 217 - 218 - ${{ steps.extract-changelog.outputs.markdown }}
-7
Dockerfile
··· 1 - FROM node:20-alpine AS runtime 2 - WORKDIR /app 3 - COPY /docs/dist ./dist 4 - EXPOSE 80 5 - ENV HOST=0.0.0.0 6 - ENV PORT=80 7 - CMD ["node", "dist/server/entry.mjs"]
-12
manifest/certificate.yaml
··· 1 - apiVersion: cert-manager.io/v1 2 - kind: Certificate 3 - metadata: 4 - name: starlight-sidebar-topics-dropdown 5 - namespace: starlight-sidebar-topics-dropdown 6 - spec: 7 - secretName: starlight-sidebar-topics-dropdown 8 - issuerRef: 9 - name: acme-issuer 10 - kind: ClusterIssuer 11 - dnsNames: 12 - - "starlight-sidebar-topics-dropdown.trueberryless.org"
-21
manifest/deployment.yaml
··· 1 - apiVersion: apps/v1 2 - kind: Deployment 3 - metadata: 4 - name: starlight-sidebar-topics-dropdown 5 - namespace: starlight-sidebar-topics-dropdown 6 - labels: 7 - app: starlight-sidebar-topics-dropdown 8 - spec: 9 - replicas: 3 10 - selector: 11 - matchLabels: 12 - app: starlight-sidebar-topics-dropdown 13 - template: 14 - metadata: 15 - labels: 16 - app: starlight-sidebar-topics-dropdown 17 - spec: 18 - containers: 19 - - name: starlight-sidebar-topics-dropdown 20 - image: "trueberryless/starlight-sidebar-topics-dropdown:0.3.3" 21 - imagePullPolicy: Always
-22
manifest/ingress.yaml
··· 1 - apiVersion: networking.k8s.io/v1 2 - kind: Ingress 3 - metadata: 4 - name: starlight-sidebar-topics-dropdown 5 - namespace: starlight-sidebar-topics-dropdown 6 - spec: 7 - rules: 8 - - host: starlight-sidebar-topics-dropdown.trueberryless.org 9 - http: 10 - paths: 11 - - path: / 12 - pathType: Prefix 13 - backend: 14 - service: 15 - name: starlight-sidebar-topics-dropdown 16 - port: 17 - number: 80 18 - 19 - tls: 20 - - hosts: 21 - - starlight-sidebar-topics-dropdown.trueberryless.org 22 - secretName: starlight-sidebar-topics-dropdown
-4
manifest/namespace.yaml
··· 1 - apiVersion: v1 2 - kind: Namespace 3 - metadata: 4 - name: starlight-sidebar-topics-dropdown
-13
manifest/service.yaml
··· 1 - apiVersion: v1 2 - kind: Service 3 - metadata: 4 - name: starlight-sidebar-topics-dropdown 5 - namespace: starlight-sidebar-topics-dropdown 6 - annotations: 7 - cert-manager.io/issuer: acme-issuer 8 - spec: 9 - selector: 10 - app: starlight-sidebar-topics-dropdown 11 - ports: 12 - - name: http 13 - port: 80