mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-06 12:27:46 +00:00
Merge branch 'main' of https://github.com/sailpoint-oss/developer-community-site into main
This commit is contained in:
42
.github/workflows/pages.yml
vendored
42
.github/workflows/pages.yml
vendored
@@ -20,31 +20,29 @@ concurrency:
|
|||||||
group: "pages"
|
group: "pages"
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# Build job
|
publish:
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
|
- name: Check out repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Setup Pages
|
# Node is required for npm
|
||||||
uses: actions/configure-pages@v1
|
- name: Set up Node
|
||||||
- name: Build with Jekyll
|
uses: actions/setup-node@v3
|
||||||
uses: actions/jekyll-build-pages@v1
|
|
||||||
with:
|
with:
|
||||||
source: ./
|
node-version: "16"
|
||||||
destination: ./_site
|
# Install and build Docusaurus website
|
||||||
- name: Upload artifact
|
- name: Build Docusaurus website
|
||||||
uses: actions/upload-pages-artifact@v1
|
run: |
|
||||||
|
npm install
|
||||||
# Deployment job
|
npm run build
|
||||||
deploy:
|
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build
|
|
||||||
steps:
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
if: success()
|
||||||
uses: actions/deploy-pages@v1
|
uses: crazy-max/ghaction-github-pages@v3
|
||||||
|
with:
|
||||||
|
target_branch: gh-pages
|
||||||
|
build_dir: build
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user