-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github action to publish in beta (#2)
- Loading branch information
1 parent
66668b6
commit eb416bb
Showing
1 changed file
with
37 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,37 @@ | ||
--- | ||
name: publish | ||
on: | ||
push: | ||
branches: | ||
- main | ||
# Recommended by https://github.com/JamesIves/github-pages-deploy-action | ||
permissions: | ||
contents: write | ||
jobs: | ||
github-pages: | ||
runs-on: ubuntu-latest | ||
container: node:18 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Clone aep.dev | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: aep-dev/aep.dev | ||
path: './aep-dev' | ||
- name: Clone Proto linter | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: aep-dev/api-linter | ||
path: './api-linter' | ||
- name: Install all dependencies. | ||
run: npm install | ||
- name: Generate all static pages. | ||
run: AEP_LOCATION=./aep-dev AEP_LINTER_LOC=./api-linter npm run generate | ||
- name: Build the static site. | ||
run: npm run build | ||
- name: Publish the static site to GitHub Pages. | ||
uses: jamesives/github-pages-deploy-action@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
folder: dist |