-
-
Notifications
You must be signed in to change notification settings - Fork 22
39 lines (39 loc) · 1.02 KB
/
ci.yml
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: Continuous integration
on:
pull_request:
push:
branches:
- main
jobs:
ci:
name: Validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- if: ${{ github.event_name == 'push' }}
uses: docker/login-action@v3
with:
username: stephanmisc
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: stepchowfun/toast/.github/actions/toast@main
with:
tasks: build check release
docker_repo: stephanmisc/toast
read_remote_cache: true
write_remote_cache: ${{ github.event_name == 'push' }}
- uses: actions/upload-pages-artifact@v3
with:
path: website/
deploy_github_pages:
name: Deploy to GitHub pages
if: ${{ github.event_name == 'push' }}
needs: ci
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
permissions:
pages: write
id-token: write
steps:
- uses: actions/deploy-pages@v4