-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1010 Bytes
/
pages.yaml
File metadata and controls
46 lines (39 loc) · 1010 Bytes
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
40
41
42
43
44
45
46
name: "GitHub Pages"
on:
workflow_dispatch:
push:
branches: [master]
paths:
- ".github/workflows/docs.yaml"
- ".github/workflows/pages.yaml"
- "docs/**"
- "src/**"
jobs:
build:
name: "Build"
uses: ./.github/workflows/docs.yaml
secrets: inherit
permissions:
contents: read
deploy:
name: "Deploy"
runs-on: ubuntu-latest
timeout-minutes: 5
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: "Deploy Pages"
id: deployment
uses: actions/deploy-pages@v4
- name: "Send Notification"
if: ${{ !cancelled() }}
continue-on-error: true
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ steps.deployment.outputs.page_url }}