Skip to content

Merge pull request #942 from zowe/revert-941-feature/zen_download #696

Merge pull request #942 from zowe/revert-941-feature/zen_download

Merge pull request #942 from zowe/revert-941-feature/zen_download #696

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/'