Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit 706e513

Browse files
committed
Setup GHA for deploy
1 parent 5a074ba commit 706e513

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: deploy
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
env:
20+
FILESYSTEM_ROOT: dist
21+
steps:
22+
- uses: actions/checkout@master
23+
- uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: 8.2
26+
- name: Install composer dependencies
27+
uses: ramsey/composer-install@v2
28+
- run: php bin/console synchronize:files
29+
- uses: actions/upload-pages-artifact@v1
30+
with:
31+
path: ./dist
32+
33+
pages:
34+
needs: build
35+
environment:
36+
name: github-pages
37+
url: ${{ steps.deployment.outputs.page_url }}
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)