ci: Add release workflows for docs and www
This commit is contained in:
11 files changed
+621
-131
No files matched your search
@@ -14,8 +14,8 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
name: Setup stage
|
||||
setup-stage:
|
||||
name: Setup - Stage
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
cache-hit: ${{ steps.cache-pnpm-store.outputs.cache-hit }}
|
||||
@@ -45,8 +45,8 @@ jobs:
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
build-configs:
|
||||
name: Build Config Packages
|
||||
needs: setup
|
||||
name: Build - Configs
|
||||
needs: setup-stage
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -68,8 +68,8 @@ jobs:
|
||||
run: pnpm --filter @ermnvldmr/storybook-config build
|
||||
|
||||
build-dependencies:
|
||||
name: Build Dependencies (STL → UI)
|
||||
needs: [setup, build-configs]
|
||||
name: Build - Dependencies
|
||||
needs: build-configs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -94,9 +94,9 @@ jobs:
|
||||
- name: Build UI package
|
||||
run: pnpm --filter @ermnvldmr/ui build
|
||||
|
||||
lint:
|
||||
name: Lint WWW & Dependencies
|
||||
needs: [setup, build-configs]
|
||||
lint-www:
|
||||
name: Lint - WWW & Deps
|
||||
needs: build-dependencies
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -117,9 +117,9 @@ jobs:
|
||||
- name: Lint WWW service
|
||||
run: pnpm --filter @ermnvldmr/www lint
|
||||
|
||||
type-check:
|
||||
name: Typecheck WWW & Dependencies
|
||||
needs: [setup, build-configs]
|
||||
typecheck-www:
|
||||
name: Typecheck - WWW & Deps
|
||||
needs: build-dependencies
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -140,9 +140,9 @@ jobs:
|
||||
- name: Typecheck WWW service
|
||||
run: pnpm --filter @ermnvldmr/www typecheck
|
||||
|
||||
storybook-build:
|
||||
name: Build Storybook
|
||||
needs: [setup, build-dependencies]
|
||||
build-storybook:
|
||||
name: Build - Storybook
|
||||
needs: build-dependencies
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -175,9 +175,9 @@ jobs:
|
||||
path: services/www/storybook-static/
|
||||
retention-days: 1
|
||||
|
||||
test:
|
||||
name: Test
|
||||
needs: [setup, storybook-build]
|
||||
test-www:
|
||||
name: Test - WWW & Storybook
|
||||
needs: build-storybook
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -224,9 +224,9 @@ jobs:
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
build:
|
||||
name: Build WWW Service
|
||||
needs: [setup, build-dependencies]
|
||||
build-www:
|
||||
name: Build - WWW Service
|
||||
needs: build-dependencies
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -252,3 +252,39 @@ jobs:
|
||||
run: pnpm --filter @ermnvldmr/ui build
|
||||
- name: Build WWW service
|
||||
run: pnpm --filter @ermnvldmr/www build
|
||||
|
||||
release-docker:
|
||||
name: Release - Docker Image
|
||||
needs: build-www
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ghcr.io/${{ github.repository }}/www
|
||||
tags: |
|
||||
type=raw,value=next
|
||||
type=sha,format=short
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ci/docker/www/Dockerfile
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
Reference in new issue
Block a user