diff --git a/.github/workflows/ci-v3.yml b/.github/workflows/build.yml similarity index 96% rename from .github/workflows/ci-v3.yml rename to .github/workflows/build.yml index 73f3a8aa35..b3135ad721 100644 --- a/.github/workflows/ci-v3.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: ci-v3 +name: build on: push: @@ -9,7 +9,9 @@ on: - v3 jobs: - ci: + build: + name: "Build module" + runs-on: ${{ matrix.os }} permissions: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4a0c9db50c..c5cf991360 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,9 +10,14 @@ on: jobs: docs: - name: "NuxtHub" + name: "Deploy to NuxtHub" + runs-on: ${{ matrix.os }} + environment: + name: ${{ github.ref == 'refs/heads/v3' && 'production' || 'preview' }} + url: ${{ steps.deploy.outputs.deployment-url }} + permissions: contents: read pull-requests: read @@ -22,10 +27,6 @@ jobs: os: [ubuntu-latest] # macos-latest, windows-latest node: [22] - environment: - name: ${{ github.ref == 'refs/heads/v3' && 'production' || 'preview' }} - url: ${{ steps.deploy.outputs.deployment-url }} - env: NUXT_GITHUB_TOKEN: ${{ secrets.NUXT_GITHUB_TOKEN }} NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }} diff --git a/.github/workflows/nuxthub-ui3-playground.yml b/.github/workflows/playground.yml similarity index 58% rename from .github/workflows/nuxthub-ui3-playground.yml rename to .github/workflows/playground.yml index 21e7464d36..9f9bfae1ef 100644 --- a/.github/workflows/nuxthub-ui3-playground.yml +++ b/.github/workflows/playground.yml @@ -1,37 +1,56 @@ -name: Deploy to NuxtHub -on: push +name: playground + +on: + push: + branches: + - v3 + pull_request: + branches: + - v3 jobs: deploy: name: "Deploy to NuxtHub" - runs-on: ubuntu-latest + + runs-on: ${{ matrix.os }} + environment: name: ${{ github.ref == 'refs/heads/v3' && 'production' || 'preview' }} url: ${{ steps.deploy.outputs.deployment-url }} + permissions: contents: read id-token: write + strategy: + matrix: + os: [ubuntu-latest] # macos-latest, windows-latest + node: [22] + steps: - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v4 - - name: Install Node.js + - name: Install node uses: actions/setup-node@v4 with: - node-version: 22 - cache: 'pnpm' + node-version: ${{ matrix.node }} + cache: pnpm - name: Install dependencies run: pnpm install + - name: Prepare build + run: pnpm run dev:prepare + - name: Build application - run: pnpm build + run: pnpm run dev:build - name: Deploy to NuxtHub uses: nuxt-hub/action@v1 id: deploy with: project-key: ui3-playground-pb9b + directory: playground/dist