-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (41 loc) · 1.11 KB
/
update-install-sh.yml
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
name: Update install.sh on Carvel Website
on:
workflow_dispatch:
push:
branches:
- main
paths:
- releases.yaml
jobs:
generate-new-install-sh:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install ytt
uses: carvel-dev/setup-action@v1
with:
only: ytt
token: ${{ secrets.GITHUB_TOKEN }}
- run: |
set -e -x
./scripts/generate_install_sh.sh ./releases.yaml ./tmp/
mv ./tmp/install.sh.txt ./install.sh
chmod u+x install.sh
- name: Upload install.sh
uses: actions/[email protected]
with:
name: new-install-sh
path: install.sh
update-install-sh:
needs: generate-new-install-sh
uses: carvel-dev/release-scripts/.github/workflows/commit-and-push.yml@main
secrets:
githubDeployPrivateKey: ${{ secrets.INSTALL_SH_DEPLOY_PRIVATE_KEY }}
with:
repository: carvel-dev/carvel
branch: develop
artifactName: new-install-sh
artifactPath: ./site/static/