Skip to content

Commit

Permalink
Add main
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Jan 16, 2025
1 parent 1ded622 commit 65ca3d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/jekyll-publish.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
name: Jekyll Production Publishing

on:
push:
workflow_dispatch:
inputs:
manual_deploy_branch:
description: "Which branch do you want to manually deploy, use 'all' to deploy all the branches (1.3, 2.x, 3.x ...) from scratch, takes long time."
description: "Which branch do you want to manually deploy"
type: string
required: true
default: ''

permissions:
contents: write

# Temporary
env:
SITE_URL: https://docsstaging.opensearch.net

concurrency:
group: ${{ github.workflow }}--${{ github.event.inputs.manual_deploy_branch }}
group: ${{ github.workflow }}-${{ github.event.inputs.manual_deploy_branch || github.ref_name }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -51,7 +53,7 @@ jobs:
echo "DESTINATION_KEY_ENV=$DESTINATION_KEY" >> $GITHUB_ENV
bundle install
CURRENT_VERSION=$(jq -r '.current' _data/versions.json)
sed -i -e "s|url:.*$|url:\ \"$SITE_URL\"|g" _config.yml
sed -i -e "s|^url:.*$|url:\ \"$SITE_URL\"|g" _config.yml
sed -i -e "s|baseurl:.*$|baseurl:\ \"/docs/$DESTINATION_KEY\"|g" _config.yml
curl -s -f -o _data/alert.yml https://raw.githubusercontent.com/opensearch-project/project-website/prod/_data/alert.yml || rm -rf _data/alert.yml
bundle exec jekyll build --trace
Expand Down

0 comments on commit 65ca3d0

Please sign in to comment.