Skip to content

Commit

Permalink
chore(ci): remove vercel, simplify workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Oct 25, 2024
1 parent d31a300 commit 94fe84d
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 229 deletions.
31 changes: 0 additions & 31 deletions .github/actions/download-artifact/action.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/actions/nightly-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
repository: ${{ inputs.checkout-repo }}
ref: ${{ inputs.checkout-ref }}
fetch-depth: 0
- uses: ./.github/actions/pnpm-install
- uses: vuetifyjs/setup-action@master
- run: >-
node -e "
const json = require('./lerna.json');
Expand Down
15 changes: 0 additions & 15 deletions .github/actions/pnpm-install/action.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/actions/upload-artifact/action.yml

This file was deleted.

67 changes: 19 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm-install
- uses: vuetifyjs/setup-action@master
- run: pnpm build vuetify
- uses: ./.github/actions/upload-artifact
- uses: actions/upload-artifact@v4
with:
name: vuetify-dist
path: >
path: |
packages/vuetify/dist
packages/vuetify/lib
Expand All @@ -51,10 +51,10 @@ jobs:
scopes: ['--scope vuetify --scope @vuetify/api-generator', '--scope vuetifyjs.com']
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/download-artifact
- uses: actions/download-artifact@v4
with:
name: vuetify-dist
- uses: ./.github/actions/pnpm-install
- uses: vuetifyjs/setup-action@master
- run: pnpm lerna run lint $SCOPES
env:
SCOPES: ${{ matrix.scopes }}
Expand All @@ -66,7 +66,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm-install
- uses: vuetifyjs/setup-action@master
- run: pnpm run test --project unit
working-directory: ./packages/vuetify

Expand All @@ -77,7 +77,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm-install
- uses: vuetifyjs/setup-action@master
- run: pnpm run test --project browser
working-directory: ./packages/vuetify

Expand All @@ -89,10 +89,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/download-artifact
- uses: actions/download-artifact@v4
with:
name: vuetify-dist
- uses: ./.github/actions/pnpm-install
- uses: vuetifyjs/setup-action@master
- run: pnpm build api
- run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: NPM Release
Expand All @@ -114,10 +114,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/download-artifact
- uses: actions/download-artifact@v4
with:
name: vuetify-dist
- uses: ./.github/actions/pnpm-install
- uses: vuetifyjs/setup-action@master
- uses: ./.github/actions/download-locales
- run: pnpm build api
- run: pnpm build docs
Expand All @@ -134,53 +134,24 @@ jobs:
VITE_EMAILJS_TEMPLATE_ID: ${{ secrets.EMAILJS_TEMPLATE_ID }}
VITE_API_SERVER_URL: ${{ secrets.API_SERVER_URL }}
VITE_GITHUB_SHA: ${{ github.sha }}
- uses: ./.github/actions/upload-artifact
- uses: actions/upload-artifact@v4
with:
name: docs-dist
path: packages/docs/dist

publish-docs-vercel:
needs: [lint, test-unit, build-docs]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository_owner == 'vuetifyjs' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/next')
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/download-artifact
with:
name: docs-dist
- uses: ./.github/actions/pnpm-install
- run: pnpm add vercel --global
- run: node scripts/deploy-and-alias.js ${{ github.ref }}
env:
NOW_TOKEN: ${{ secrets.NOW_TOKEN }}

publish-docs-coolify:
publish-docs:
needs: [lint, test-unit, build-docs]
runs-on: ubuntu-latest
environment: Production
if: github.event_name == 'push' && github.repository_owner == 'vuetifyjs' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/download-artifact
- uses: actions/download-artifact@v4
with:
name: docs-dist
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/vuetifyjs/docs
- uses: docker/build-push-action@v6
- uses: vuetifyjs/coolify-action@master
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Deploy to Coolify
run: |
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'
token: ${{ secrets.GITHUB_TOKEN }}
imageName: docs
coolifyWebhook: ${{ secrets.COOLIFY_WEBHOOK }}
coolifySecret: ${{ secrets.COOLIFY_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/nightly-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
echo "Last commit was more than 24 hours ago, skipping tests"
exit 1
fi
- uses: ./.github/actions/pnpm-install
- uses: vuetifyjs/setup-action@master
- run: echo "COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- run: pnpm cy:run
working-directory: ./packages/vuetify
Expand Down
6 changes: 0 additions & 6 deletions .vercelignore

This file was deleted.

28 changes: 0 additions & 28 deletions scripts/deploy-and-alias.js

This file was deleted.

53 changes: 0 additions & 53 deletions vercel.json

This file was deleted.

0 comments on commit 94fe84d

Please sign in to comment.