-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (96 loc) · 2.91 KB
/
release.yml
File metadata and controls
113 lines (96 loc) · 2.91 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Release
on:
push:
branches:
- main
paths:
- .github/templates/*
- application/**
- library/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions:
checks: write
contents: write
id-token: write
issues: write
packages: write
pages: write
jobs:
distribution:
name: Distribution
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup helm
uses: azure/setup-helm@v4
with:
version: v3.17.3
- name: Setup helm linter
uses: helm/chart-testing-action@v2
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install node dependencies
run: npm install glob handlebars js-yaml
- name: Configure repository
id: workflow
uses: actions/github-script@v7
with:
script: |
const { Workflow } = require('./.github/actions/handlers');
const workflow = new Workflow({ github, context, core, exec });
await workflow.configureRepository();
- name: Process chart releases
uses: actions/github-script@v7
with:
script: |
const { Workflow } = require('./.github/actions/handlers');
const workflow = new Workflow({ github, context, core, exec });
await workflow.processReleases();
- name: Setup frontpage
if: steps.workflow.outputs.publish == 'true'
uses: actions/github-script@v7
with:
script: |
const { Workflow } = require('./.github/actions/handlers');
const workflow = new Workflow({ github, context, core, exec });
await workflow.setFrontpage();
- name: Build pages
if: steps.workflow.outputs.publish == 'true'
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Configure pages
if: steps.workflow.outputs.publish == 'true'
id: pages
uses: actions/configure-pages@v5
- name: Upload pages artifact
if: steps.workflow.outputs.publish == 'true'
uses: actions/upload-pages-artifact@v3
with:
path: ./_site
- name: Deploy pages
if: steps.workflow.outputs.publish == 'true'
uses: actions/deploy-pages@v4
- name: Report workflow issue
uses: actions/github-script@v7
if: always()
with:
script: |
const { Workflow } = require('./.github/actions/handlers');
const workflow = new Workflow({ github, context, core, exec });
await workflow.reportIssue();