Skip to content

Commit

Permalink
add workflow to publish presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo-cunha committed Mar 21, 2024
1 parent 1776884 commit 11131ae
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish presentation to Github pages
on:
push:
branches: [main]
env:
BASE: /mlops-and-deployment
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "14"
- name: Install and build
run: |
cd presentation/
npm install
npm run build --base ${{ env.BASE }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: dist/
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
5 changes: 5 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from 'vite';

export default defineConfig({
base: '/mlops-and-deployment',
});

0 comments on commit 11131ae

Please sign in to comment.