-
-
Notifications
You must be signed in to change notification settings - Fork 20
52 lines (44 loc) · 1.15 KB
/
main-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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Main - Continuous Integration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
- 4.x
jobs:
ci:
name: Continuous Integration
uses: ./.github/workflows/__shared-ci.yml
secrets: inherit
with:
publish: true
deploy:
name: Deploy website
needs: ci
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: documentation
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: update documentation"
commit_options: "--no-verify --signoff"
push_options: --force
- name: ⚙️ Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v4
- name: 🚀 Deploy to GitHub Pages
id: deployment
if: github.ref == 'refs/heads/main'
uses: actions/deploy-pages@v4