Skip to content

Commit 50a0b9c

Browse files
author
Sean Sundberg
authored
Publishes install script to gh-pages (#414)
Signed-off-by: Sean Sundberg <[email protected]>
1 parent cc2568c commit 50a0b9c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Publish
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "main" branch
8+
push:
9+
branches: [ "main" ]
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
# This workflow contains a single job called "build"
14+
publish:
15+
# The type of runner that the job will run on
16+
runs-on: ubuntu-latest
17+
18+
# Steps represent a sequence of tasks that will be executed as part of the job
19+
steps:
20+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+
- uses: actions/checkout@v3
22+
23+
# Runs a single command using the runners shell
24+
- name: Setup directory
25+
run: |
26+
mkdir -p public
27+
cp install/install-ibm-toolkit.sh public/install.sh
28+
cp install/install-ibm-toolkit.sh public/install.html
29+
30+
- name: Deploy
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./public
35+
cname: get.cloudnativetoolkit.dev

0 commit comments

Comments
 (0)