mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore(github): update workflows
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: ci-v3
|
name: build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -9,7 +9,9 @@ on:
|
|||||||
- v3
|
- v3
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
build:
|
||||||
|
name: "Build module"
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
11
.github/workflows/docs.yml
vendored
11
.github/workflows/docs.yml
vendored
@@ -10,9 +10,14 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
name: "NuxtHub"
|
name: "Deploy to NuxtHub"
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
environment:
|
||||||
|
name: ${{ github.ref == 'refs/heads/v3' && 'production' || 'preview' }}
|
||||||
|
url: ${{ steps.deploy.outputs.deployment-url }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
@@ -22,10 +27,6 @@ jobs:
|
|||||||
os: [ubuntu-latest] # macos-latest, windows-latest
|
os: [ubuntu-latest] # macos-latest, windows-latest
|
||||||
node: [22]
|
node: [22]
|
||||||
|
|
||||||
environment:
|
|
||||||
name: ${{ github.ref == 'refs/heads/v3' && 'production' || 'preview' }}
|
|
||||||
url: ${{ steps.deploy.outputs.deployment-url }}
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NUXT_GITHUB_TOKEN: ${{ secrets.NUXT_GITHUB_TOKEN }}
|
NUXT_GITHUB_TOKEN: ${{ secrets.NUXT_GITHUB_TOKEN }}
|
||||||
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
|
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
|
||||||
|
|||||||
@@ -1,37 +1,56 @@
|
|||||||
name: Deploy to NuxtHub
|
name: playground
|
||||||
on: push
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- v3
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- v3
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: "Deploy to NuxtHub"
|
name: "Deploy to NuxtHub"
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
name: ${{ github.ref == 'refs/heads/v3' && 'production' || 'preview' }}
|
name: ${{ github.ref == 'refs/heads/v3' && 'production' || 'preview' }}
|
||||||
url: ${{ steps.deploy.outputs.deployment-url }}
|
url: ${{ steps.deploy.outputs.deployment-url }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest] # macos-latest, windows-latest
|
||||||
|
node: [22]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: ${{ matrix.node }}
|
||||||
cache: 'pnpm'
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Prepare build
|
||||||
|
run: pnpm run dev:prepare
|
||||||
|
|
||||||
- name: Build application
|
- name: Build application
|
||||||
run: pnpm build
|
run: pnpm run dev:build
|
||||||
|
|
||||||
- name: Deploy to NuxtHub
|
- name: Deploy to NuxtHub
|
||||||
uses: nuxt-hub/action@v1
|
uses: nuxt-hub/action@v1
|
||||||
id: deploy
|
id: deploy
|
||||||
with:
|
with:
|
||||||
project-key: ui3-playground-pb9b
|
project-key: ui3-playground-pb9b
|
||||||
|
directory: playground/dist
|
||||||
Reference in New Issue
Block a user