-
Notifications
You must be signed in to change notification settings - Fork 35
68 lines (59 loc) · 1.91 KB
/
update_static_html.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
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
name: Update static HTML files
# Run this workflow
on:
push:
branches:
- master
pull_request:
types: [labeled]
branches:
- master
jobs:
check-permission:
runs-on: ubuntu-latest
steps:
# this action will fail the whole workflow if permission check fails
- name: check permission
uses: zowe-actions/shared-actions/permission-check@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# Set the job key. The key is displayed as the job name
build:
# Set the type of machine to run on
runs-on: ubuntu-latest
needs: check-permission
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
with:
repository: zowe/zowe.github.io
- name: Setup JFrog Artifactory CLI
uses: jfrog/setup-jfrog-cli@v2
env:
JF_ENV_1: ${{ secrets.JF_ARTIFACTORY_TOKEN }}
- name: Prepare Workflow
uses: zowe-actions/shared-actions/prepare-workflow@main
- name: Build site
uses: jerryjvl/jekyll-build-action@v1
- name: Publish Release to Artifactory
uses: zowe-actions/shared-actions/publish@main
env:
DEBUG: 'zowe-actions:shared-actions:publish'
if: ${{ github.ref == 'refs/heads/master' }}
with:
perform-release: true
artifacts: |
_site/post_download.html
_site/legal.html
publish-target-path-pattern: 'libs-release-local/org/zowe/download/'
publish-target-file-pattern: '{filename}{fileext}'
- name: Publish Snapshot to Artifactory
uses: zowe-actions/shared-actions/publish@main
if: ${{ github.ref != 'refs/heads/master' }}
with:
perform-release: false
artifacts: |
_site/post_download.html
_site/legal.html
publish-target-path-pattern: 'libs-snapshot-local/org/zowe/download/'