mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
ci: rename
This commit is contained in:
1 parent
1e909204d6
commit
bd25b85d1e
13 files changed
+176
-88
No files matched your search
+4
-3
@@ -1,4 +1,5 @@
|
||||
name: CI - Build Starters Matrix
|
||||
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
||||
|
||||
on:
|
||||
schedule:
|
||||
@@ -73,15 +74,15 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Enable Corepack (for pnpm cache)
|
||||
run: corepack enable
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "${{ env.NODE_VERSION }}"
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Enable Corepack (use pnpm from package.json)
|
||||
run: corepack enable
|
||||
|
||||
- name: Activate pnpm from root package.json
|
||||
run: pnpm --version
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name: CI - Build Test Site
|
||||
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -61,15 +62,15 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Enable Corepack (for pnpm cache)
|
||||
run: corepack enable
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "${{ env.NODE_VERSION }}"
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Enable Corepack (use pnpm from package.json)
|
||||
run: corepack enable
|
||||
|
||||
- name: Activate pnpm from root package.json
|
||||
run: pnpm --version
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name: CI - Lint
|
||||
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -39,12 +40,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Enable Corepack (for pnpm cache)
|
||||
run: corepack enable
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "${{ env.NODE_VERSION }}"
|
||||
cache: "pnpm"
|
||||
- name: Enable Corepack (use pnpm from package.json)
|
||||
run: corepack enable
|
||||
- name: Activate pnpm from root package.json
|
||||
run: pnpm --version
|
||||
- name: Install dependencies
|
||||
@@ -1,4 +1,5 @@
|
||||
name: CI - PR Labeler
|
||||
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
@@ -1,4 +1,5 @@
|
||||
name: Security - CodeQL
|
||||
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
||||
|
||||
on:
|
||||
schedule:
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
name: Welcome New Contributor
|
||||
name: Community - Welcome New Contributor
|
||||
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
@@ -1,7 +1,8 @@
|
||||
name: 'Close stale issues and PRs'
|
||||
name: "Maintenance - Close Stale Issues and PRs"
|
||||
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
||||
on:
|
||||
schedule:
|
||||
- cron: '30 1 * * *'
|
||||
- cron: "30 1 * * *"
|
||||
|
||||
permissions:
|
||||
contents: write # only for delete-branch option
|
||||
@@ -35,5 +36,5 @@ jobs:
|
||||
days-before-close: 5
|
||||
stale-issue-label: stale
|
||||
stale-pr-label: stale
|
||||
exempt-issue-labels: 'keep,enhancement,bug,documentation'
|
||||
exempt-pr-labels: 'keep,enhancement,bug,documentation'
|
||||
exempt-issue-labels: "keep,enhancement,bug,documentation"
|
||||
exempt-pr-labels: "keep,enhancement,bug,documentation"
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
name: Release HugoBlox Modules
|
||||
name: Release - HugoBlox Modules
|
||||
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -33,7 +34,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.13'
|
||||
python-version: "3.13"
|
||||
|
||||
- name: Install Poetry
|
||||
uses: snok/install-poetry@v1
|
||||
@@ -0,0 +1,59 @@
|
||||
name: "Release - Package Splitter"
|
||||
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
# IMPORTANT: workflows below must match the upstream workflow's `name:` exactly
|
||||
workflow_run:
|
||||
workflows:
|
||||
- Release - HugoBlox Modules
|
||||
types:
|
||||
- completed
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
jobs:
|
||||
packages_split:
|
||||
# Run normally for push/workflow_dispatch; for workflow_run only run on success
|
||||
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# define package to repository map
|
||||
package:
|
||||
- local_path: "starters/academic-cv"
|
||||
split_repository: "theme-academic-cv"
|
||||
- local_path: "starters/resume"
|
||||
split_repository: "theme-resume"
|
||||
- local_path: "starters/blog"
|
||||
split_repository: "theme-blog"
|
||||
- local_path: "starters/documentation"
|
||||
split_repository: "theme-documentation"
|
||||
- local_path: "starters/link-in-bio"
|
||||
split_repository: "theme-link-in-bio"
|
||||
- local_path: "starters/landing-page"
|
||||
split_repository: "theme-landing-page"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
# step if no tag is pushed
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
||||
uses: "symplify/monorepo-split-github-action@v2.3.0"
|
||||
with:
|
||||
# ↓ split "packages/<package-name><package-name>" directory
|
||||
package_directory: "${{ matrix.package.local_path }}"
|
||||
|
||||
# ↓ into https://github.com/HugoBlox/<package-name> repository
|
||||
repository_organization: "HugoBlox"
|
||||
repository_name: "${{ matrix.package.split_repository }}"
|
||||
|
||||
# ↓ the user signed under the split commit
|
||||
user_name: "Splitter Bot"
|
||||
user_email: "no.reply@hugoblox.com"
|
||||
@@ -0,0 +1,51 @@
|
||||
name: Security - CodeQL
|
||||
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 3 * * 0"
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "**/*.js"
|
||||
- "**/*.jsx"
|
||||
- "**/*.ts"
|
||||
- "**/*.tsx"
|
||||
- "**/*.py"
|
||||
- ".github/workflows/codeql.yml"
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "**/*.js"
|
||||
- "**/*.jsx"
|
||||
- "**/*.ts"
|
||||
- "**/*.tsx"
|
||||
- "**/*.py"
|
||||
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze (CodeQL)
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: "javascript-typescript,python"
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
with:
|
||||
category: "/language:javascript-typescript"
|
||||
@@ -1,58 +0,0 @@
|
||||
name: 'Package Splitter'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
# IMPORTANT: workflows below must match the upstream workflow's `name:` exactly
|
||||
workflow_run:
|
||||
workflows:
|
||||
- Release HugoBlox Modules
|
||||
types:
|
||||
- completed
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
jobs:
|
||||
packages_split:
|
||||
# Run normally for push/workflow_dispatch; for workflow_run only run on success
|
||||
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# define package to repository map
|
||||
package:
|
||||
- local_path: 'starters/academic-cv'
|
||||
split_repository: 'theme-academic-cv'
|
||||
- local_path: 'starters/resume'
|
||||
split_repository: 'theme-resume'
|
||||
- local_path: 'starters/blog'
|
||||
split_repository: 'theme-blog'
|
||||
- local_path: 'starters/documentation'
|
||||
split_repository: 'theme-documentation'
|
||||
- local_path: 'starters/link-in-bio'
|
||||
split_repository: 'theme-link-in-bio'
|
||||
- local_path: 'starters/landing-page'
|
||||
split_repository: 'theme-landing-page'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
# step if no tag is pushed
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
||||
uses: 'symplify/monorepo-split-github-action@v2.3.0'
|
||||
with:
|
||||
# ↓ split "packages/<package-name><package-name>" directory
|
||||
package_directory: '${{ matrix.package.local_path }}'
|
||||
|
||||
# ↓ into https://github.com/HugoBlox/<package-name> repository
|
||||
repository_organization: 'HugoBlox'
|
||||
repository_name: '${{ matrix.package.split_repository }}'
|
||||
|
||||
# ↓ the user signed under the split commit
|
||||
user_name: 'Splitter Bot'
|
||||
user_email: 'no.reply@hugoblox.com'
|
||||
Reference in new issue
Block a user