Skip to content

Commit

Permalink
ci: deploy to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jan 4, 2024
1 parent cfe62b9 commit 7b2b144
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy
on:
push:
branches: ['master']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
- run: npm ci --legacy-peer-deps
- run: npm run build
env:
BASE_URL: /aepp-base-home-page
- uses: actions/upload-pages-artifact@v2
with:
path: dist
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v4
id: deployment

0 comments on commit 7b2b144

Please sign in to comment.