Skip to content

Commit 65ecee6

Browse files
committed
feat: update CI
1 parent 9d37134 commit 65ecee6

File tree

7 files changed

+116
-228
lines changed

7 files changed

+116
-228
lines changed

Diff for: .github/workflows/ci.yml

-195
This file was deleted.

Diff for: .github/workflows/clean.yml

-32
This file was deleted.

Diff for: .github/workflows/feature-closed.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "CI / Feature Closed"
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
workflow_dispatch:
8+
inputs:
9+
featureBranch:
10+
description: Specify the feature branch when triggering manually
11+
required: true
12+
13+
jobs:
14+
use-application-js-cloudflare-feature-closed:
15+
permissions:
16+
contents: read
17+
uses: MatrixAI/.github/.github/workflows/application-js-cloudflare-feature-closed.yml@master
18+
with:
19+
appName: zeta-house-docs
20+
appHostname: docs.zeta.house
21+
featureBranch: ${{ github.head_ref || inputs.featureBranch }}
22+
secrets:
23+
NIXPKGS_PRIVATE_PAT: ${{ secrets.NIXPKGS_PRIVATE_PAT }}
24+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
25+
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
26+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

Diff for: .github/workflows/feature.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "CI / Feature"
2+
3+
on:
4+
push:
5+
branches:
6+
- feature*
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
use-application-js-cloudflare-feature:
15+
permissions:
16+
contents: read
17+
actions: write
18+
checks: write
19+
uses: MatrixAI/.github/.github/workflows/application-js-cloudflare-feature.yml@master
20+
with:
21+
ref: master
22+
secrets:
23+
NIXPKGS_PRIVATE_PAT: ${{ secrets.NIXPKGS_PRIVATE_PAT }}
24+
DEPLOY_SECRETS: |
25+
CLOUDFLARE_ACCOUNT_ID=${{ toJSON(secrets.CLOUDFLARE_ACCOUNT_ID) }}
26+
CLOUDFLARE_ZONE_ID=${{ toJSON(secrets.CLOUDFLARE_ZONE_ID) }}
27+
CLOUDFLARE_API_TOKEN=${{ toJSON(secrets.CLOUDFLARE_API_TOKEN) }}
28+
ZETA_HOUSE_DOCS_ENV=${{ toJSON(secrets.ZETA_HOUSE_DOCS_ENV) }}

Diff for: .github/workflows/master.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "CI / Master"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
use-application-js-cloudflare-master:
15+
permissions:
16+
contents: read
17+
actions: write
18+
uses: MatrixAI/.github/.github/workflows/application-js-cloudflare-master.yml@master
19+
with:
20+
ref: master
21+
secrets:
22+
NIXPKGS_PRIVATE_PAT: ${{ secrets.NIXPKGS_PRIVATE_PAT }}
23+
DEPLOY_SECRETS: |
24+
CLOUDFLARE_ACCOUNT_ID=${{ toJSON(secrets.CLOUDFLARE_ACCOUNT_ID) }}
25+
CLOUDFLARE_ZONE_ID=${{ toJSON(secrets.CLOUDFLARE_ZONE_ID) }}
26+
CLOUDFLARE_API_TOKEN=${{ toJSON(secrets.CLOUDFLARE_API_TOKEN) }}
27+
ZETA_HOUSE_DOCS_ENV=${{ toJSON(secrets.ZETA_HOUSE_DOCS_ENV) }}

Diff for: .github/workflows/staging.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "CI / Staging"
2+
3+
on:
4+
push:
5+
branches:
6+
- staging
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
use-application-js-cloudflare-staging:
15+
permissions:
16+
contents: write
17+
actions: write
18+
checks: write
19+
pull-requests: write
20+
uses: MatrixAI/.github/.github/workflows/application-js-cloudflare-staging.yml@master
21+
with:
22+
ref: master
23+
secrets:
24+
NIXPKGS_PRIVATE_PAT: ${{ secrets.NIXPKGS_PRIVATE_PAT }}
25+
DEPLOY_SECRETS: |
26+
CLOUDFLARE_ACCOUNT_ID=${{ toJSON(secrets.CLOUDFLARE_ACCOUNT_ID) }}
27+
CLOUDFLARE_ZONE_ID=${{ toJSON(secrets.CLOUDFLARE_ZONE_ID) }}
28+
CLOUDFLARE_API_TOKEN=${{ toJSON(secrets.CLOUDFLARE_API_TOKEN) }}
29+
ZETA_HOUSE_DOCS_ENV=${{ toJSON(secrets.ZETA_HOUSE_DOCS_ENV) }}
30+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
31+
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
32+
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
33+
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
34+
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}

Diff for: flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
shellHook = ''
2020
echo "Entering $(npm pkg get name)"
2121
set -o allexport
22-
. <(pk secrets env Polykey-Docs:.)
22+
. <(polykey secrets env Polykey-Docs)
2323
set +o allexport
2424
set -v
2525
${lib.optionalString ci ''

0 commit comments

Comments
 (0)