Skip to content

Merge pull request #84 from AdobeDocs/abs72485/missing-images-hotfix #234

Merge pull request #84 from AdobeDocs/abs72485/missing-images-hotfix

Merge pull request #84 from AdobeDocs/abs72485/missing-images-hotfix #234

Workflow file for this run

---
name: Github Pages
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node v16 for Yarn v3
uses: actions/setup-node@v3
with:
node-version: "16.15.0" # Current LTS version
- name: Enable Corepack for Yarn v3
run: corepack enable
- name: Install Yarn v3
uses: borales/actions-yarn@v3
with:
cmd: set version stable
- name: Install Dependencies
uses: borales/actions-yarn@v3
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
with:
cmd: install
- name: Build site
uses: borales/actions-yarn@v3
with:
cmd: build
env:
PREFIX_PATHS: true # works like --prefix-paths flag for 'gatsby build'
PATH_PREFIX: ${{ github.event.repository.name }}
ADOBE_LAUNCH_SRC: ${{ secrets.AIO_ADOBE_LAUNCH_SRC }}
ADOBE_LAUNCH_SRC_INCLUDE_IN_DEVELOPMENT: ${{ secrets.ADOBE_LAUNCH_SRC_INCLUDE_IN_DEVELOPMENT }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: ${{ github.event.repository.owner.login }}
REPO_NAME: ${{ github.event.repository.name }}
REPO_BRANCH: ${{ github.ref_name }}
GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.GOOGLE_OAUTH_CLIENT_ID }}
GOOGLE_OAUTH_CLIENT_SECRET: ${{ secrets.GOOGLE_OAUTH_CLIENT_SECRET }}
GOOGLE_DOCS_TOKEN: ${{ secrets.GOOGLE_DOCS_TOKEN }}
GOOGLE_DOCS_FOLDER_ID: ${{ secrets.GOOGLE_DOCS_FOLDER_ID }}
NODE_OPTIONS: "--max_old_space_size=8192"
- name: Deploy to GH Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: public # The folder the action should deploy.
clean: true # Automatically remove deleted files from deploy branch
- name: GH Pages URL
id: gh-pages-url
run: |
echo "View GH-Pages: $(https://adobedocs.github.io/${{ github.event.repository.name }})"