Skip to content

Commit

Permalink
revert deploy.yaml changes
Browse files Browse the repository at this point in the history
the current site exceeds the file limits for deployments with the Vercel CLI
  • Loading branch information
ajschmidt8 committed Sep 20, 2024
1 parent 89eecdd commit 4eb5790
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 31 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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}"
8 changes: 0 additions & 8 deletions vercel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -47,9 +42,6 @@ case "${CMD}" in
"build")
build
;;
"mk-dist")
mk-dist
;;
*)
echo "${USAGE}"
exit 1
Expand Down

0 comments on commit 4eb5790

Please sign in to comment.