forked from wetestroadie/git_page_scaffolder_example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
43 lines (39 loc) · 1.14 KB
/
template.yaml
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
apiVersion: scaffolder.backstage.io/v1alpha1
kind: Template
metadata:
name: github-pages-website
title: GitHub Pages Website
description: Create a static HTML website and publish it via GitHub pages.
spec:
owner: my-group-name
type: website
parameters:
- title: Choose a Source Control Management tool to store your new website in.
required:
- repoUrl
properties:
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedHosts:
- github.com
steps:
- id: template
name: Fetch Skeleton + Template
action: fetch:template
input:
url: ./skeleton
- id: publishToGitHub
name: Publish to GitHub
action: publish:github
input:
allowedHosts: ['github.com']
# This will be used as the repo description on GitHub.
description: 'A static HTML website. Just like the good old days.'
repoUrl: ${{ parameters.repoUrl }}
defaultBranch: main
repoVisibility: public
output:
remoteUrl: '{{ steps.publishToGitHub.output.remoteUrl }}'