Skip to content

Commit b4e888c

Browse files
authored
Update github-pages.yml
1 parent fc593fd commit b4e888c

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/github-pages.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Github Pages
23
on:
34
push:
@@ -7,31 +8,33 @@ jobs:
78
runs-on: ubuntu-latest
89
steps:
910
- name: Checkout
10-
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
11-
with:
12-
persist-credentials: false
13-
- name: NPM Install
11+
uses: actions/checkout@v3
12+
- name: Yarn Install
1413
uses: bahmutov/npm-install@v1
1514
- name: Build
1615
run: |
17-
npm run build
16+
yarn build
1817
env:
19-
PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build'
18+
PREFIX_PATHS: true # works like --prefix-paths flag for 'gatsby build'
2019
PATH_PREFIX: ${{ github.event.repository.name }}
2120
ADOBE_LAUNCH_SRC: ${{ secrets.AIO_ADOBE_LAUNCH_SRC }}
2221
ADOBE_LAUNCH_SRC_INCLUDE_IN_DEVELOPMENT: ${{ secrets.ADOBE_LAUNCH_SRC_INCLUDE_IN_DEVELOPMENT }}
2322
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2423
REPO_OWNER: ${{ github.event.repository.owner.login }}
2524
REPO_NAME: ${{ github.event.repository.name }}
26-
REPO_BRANCH: ${{ steps.vars.outputs.BRANCH_SHORT_REF }}
25+
REPO_BRANCH: ${{ github.ref_name }}
2726
GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.GOOGLE_OAUTH_CLIENT_ID }}
2827
GOOGLE_OAUTH_CLIENT_SECRET: ${{ secrets.GOOGLE_OAUTH_CLIENT_SECRET }}
2928
GOOGLE_DOCS_TOKEN: ${{ secrets.GOOGLE_DOCS_TOKEN }}
3029
GOOGLE_DOCS_FOLDER_ID: ${{ secrets.GOOGLE_DOCS_FOLDER_ID }}
3130
- name: Deploy to GH Pages
32-
uses: JamesIves/github-pages-deploy-action@3.7.1
31+
uses: JamesIves/github-pages-deploy-action@v4
3332
with:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
BRANCH: gh-pages # The branch the action should deploy to.
36-
FOLDER: public # The folder the action should deploy.
37-
CLEAN: true # Automatically remove deleted files from the deploy branch
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
branch: gh-pages # The branch the action should deploy to.
35+
folder: public # The folder the action should deploy.
36+
clean: true # Automatically remove deleted files from deploy branch
37+
- name: GH Pages URL
38+
id: gh-pages-url
39+
run: |
40+
echo "View GH-Pages: $(https://adobedocs.github.io/${{ github.event.repository.name }})"

0 commit comments

Comments
 (0)