diff --git a/.github/workflows/buildweb.yaml b/.github/workflows/buildweb.yaml index c8a8cd86d..c43cc35fb 100644 --- a/.github/workflows/buildweb.yaml +++ b/.github/workflows/buildweb.yaml @@ -23,12 +23,12 @@ jobs: bun-version: latest # or specify a version - name: Install Dependencies - run: | + run: | cd web-ui - bun install + bun install --frozen-lockfile - name: Build Project run: | - cd web-ui + cd web-ui bun run build diff --git a/.github/workflows/deployweb.yaml b/.github/workflows/deployweb.yaml new file mode 100644 index 000000000..16b4acb50 --- /dev/null +++ b/.github/workflows/deployweb.yaml @@ -0,0 +1,22 @@ +name: Production Tag Deployment +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + tags: + - 'fe/v*' # Push events to every tag not containing / + +jobs: + Deploy-Production: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Vercel CLI + run: npm install --global vercel@^21.0.0 # Replace with the current major version + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.gitignore b/.gitignore index ff0e5a457..e74765ed4 100644 --- a/.gitignore +++ b/.gitignore @@ -72,3 +72,4 @@ web-ui/.vercel # typescript web-ui/*.tsbuildinfo web-ui/next-env.d.ts +.vercel diff --git a/vercel.json b/vercel.json new file mode 100644 index 000000000..540ffc64e --- /dev/null +++ b/vercel.json @@ -0,0 +1,7 @@ +{ + "git": { + "deploymentEnabled": { + "main": false + } + } +}