diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 3fc3ae5f5d0..7ce25c51eb5 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -24,23 +24,19 @@ jobs: name: Build (and deploy) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v3.1.0 with: fetch-depth: 0 # this step uses the `.ruby-version` file - uses: ruby/setup-ruby@v1 - - uses: actions/setup-node@v4 - with: - node-version-file: .nvmrc - - name: Build Jekyll Site run: | bundle install bundle exec jekyll build - - uses: aws-actions/configure-aws-credentials@4 + - uses: aws-actions/configure-aws-credentials@v1-node16 with: role-to-assume: ${{ vars.AWS_ROLE_ARN }} aws-region: ${{ vars.AWS_REGION }} @@ -52,7 +48,7 @@ jobs: - name: Post-process docs run: ci/post-process.sh - - name: Deploy site to Netlify + - name: Deploy site env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_API_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DOCS_SITE_ID }} @@ -67,19 +63,3 @@ jobs: fi netlify deploy "$ARGS" \ --dir=_site - - - name: Deploy site to Vercel - env: - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - run: | - npm install - npm install --global --force vercel - - ARGS="" - if [ "$GITHUB_REF_NAME" = "main" ]; then - ARGS="--prod" - fi - ./vercel.sh mk-dist - vercel deploy --prebuilt "${ARGS}" --token="${VERCEL_TOKEN}" diff --git a/vercel.sh b/vercel.sh index a8f61617c20..0f68906316c 100755 --- a/vercel.sh +++ b/vercel.sh @@ -30,11 +30,6 @@ build() { echo "building..." jekyll build - mk-dist -} - -mk-dist() { - echo "copying to vercel directory..." mkdir -p .vercel/output/ node ci/vercel/config.mjs > .vercel/output/config.json cp -r _site .vercel/output/static @@ -47,9 +42,6 @@ case "${CMD}" in "build") build ;; - "mk-dist") - mk-dist - ;; *) echo "${USAGE}" exit 1