-
Notifications
You must be signed in to change notification settings - Fork 11
94 lines (81 loc) · 2.7 KB
/
build-registry.yml
File metadata and controls
94 lines (81 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Deploy Production Registry
on:
push:
branches:
- main
permissions:
actions: read
deployments: write
contents: write
concurrency:
group: "production-registry-deploy"
cancel-in-progress: true
jobs:
build:
if: ${{ github.repository_owner != 'getarcaneapp' }}
runs-on: macos-latest
environment:
name: production
url: https://registry.getarcane.app
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.ARCANE_BOT_TOKEN }}
- name: Configure Git
run: |
git config --global user.name "getarcaneappbot"
git config --global user.email "info@getarcane.app"
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "25"
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Validate templates
run: pnpm run type-check && pnpm run generate && pnpm run validate
- name: Generate registry.json
env:
REGISTRY_NAME: Arcane Community Templates
REGISTRY_DESCRIPTION: Community Docker Compose Templates for Arcane
REGISTRY_AUTHOR: getarcaneapp
REGISTRY_URL: "https://github.com/getarcaneapp/templates"
PUBLIC_BASE: "https://registry.getarcane.app/templates"
DOCS_BASE: "https://github.com/getarcaneapp/templates/tree/main/templates"
BUMP_PART: minor
SCHEMA_URL: "https://registry.getarcane.app/schema.json"
run: pnpm run generate
- name: Commit registry.json
uses: stefanzweifel/git-auto-commit-action@v7
with:
repository: "."
branch: ""
commit_message: "chore: update registry.json [skip ci]"
commit_user_name: getarcaneappbot
commit_user_email: info@getarcane.app
commit_author: "getarcaneappbot <info@getarcane.app>"
commit_options: ""
file_pattern: "registry.json"
add_options: ""
tag_name: ""
tagging_message: ""
status_options: "--porcelain"
push_options: ""
skip_dirty_check: false
skip_fetch: false
skip_checkout: false
skip_push: false
disable_globbing: false
create_branch: false
create_git_tag_only: false
- name: Stage build directory
run: pnpm run stage
- name: Deploy to Cloudflare Workers
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: pnpm exec wrangler deploy