-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (34 loc) · 1.03 KB
/
slides.yml
File metadata and controls
39 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: slides
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout 🛎
uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
# https://github.com/cypress-io/github-action
- name: Test slides 🎞
uses: cypress-io/github-action@v6
with:
config-file: 'cypress.slides-config.js'
start: 'npm run slides'
wait-on: 'http://localhost:3100'
# build and deploy new version of the slides
- name: Build slides 🏗
run: npm run slides:build -- --base /cypress-workshop-basics/
- name: Show the built folder 📋
run: ls -la dist
# if the tests passed, publish the application
# https://github.com/peaceiris/actions-gh-pages
- name: Publish slides 🌐
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist