we ball! #15
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
name: DEPLOY | |
on: | |
push: | |
paths: | |
- 'example-website/**' | |
- '.github/workflows/deploy.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
deploy-web: | |
name: Deploy EK Web Framework Example Website | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v2.3.4 | |
- name: Setup NodeJS πͺ’ | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install π₯ | |
working-directory: example-website | |
run: npm install | |
- name: Build ποΈ | |
working-directory: example-website | |
run: npx ng build --configuration production --base-href /ek-web-framework/ | |
- name: NoJekyll π« | |
working-directory: example-website | |
run: touch dist/example-website/browser/.nojekyll | |
- name: Setup Pages π | |
uses: actions/configure-pages@v5 | |
- name: Upload Artifact πΊ | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: example-website/dist/example-website/browser | |
- name: Deploy to GitHub Pages π | |
id: deployment | |
uses: actions/deploy-pages@v4 |