-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcad800
commit c5a3c15
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: publish | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
# Recommended by https://github.com/JamesIves/github-pages-deploy-action | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: node:20 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Clone aep.dev | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: aep-dev/aep.dev | ||
path: './aep-dev' | ||
- name: Clone Site Generator | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: aep-dev/site-generator-beta | ||
path: './site-generator-beta' | ||
- name: Create rules folder | ||
run: mkdir site-generator-beta/src/content/docs/tooling/linter/rules | ||
- name: Install all dependencies. | ||
working-directory: ./site-generator-beta | ||
run: npm install | ||
- name: Generate all static pages. | ||
working-directory: ./site-generator-beta | ||
run: AEP_LOCATION=../aep-dev AEP_LINTER_LOC=../ npm run generate | ||
- name: Build website | ||
working-directory: ./site-generator-beta | ||
run: npm run build | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
working-directory: ./site-generator-beta | ||
with: | ||
folder: dist | ||
repository-name: aep-dev/site-generator-beta | ||
branch: gh-pages | ||
token: ${{ secrets.GITHUB_TOKEN }} |