-
-
Notifications
You must be signed in to change notification settings - Fork 22
37 lines (37 loc) · 1.01 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
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: ${{ github.event_name == 'push' }}
write_remote_cache: ${{ github.event_name == 'push' }}
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
deploy_github_pages:
name: Deploy to GitHub pages
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