Skip to content

Commit bad3f41

Browse files
authored
Create _config.yml
Signed-off-by: MMDRZA <info@mmdrza.com>
1 parent 314837e commit bad3f41

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/_config.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: '18.x'
27+
cache: 'npm'
28+
29+
- name: Install dependencies
30+
run: |
31+
npm install
32+
33+
- name: Build the project
34+
run: |
35+
npm run build
36+
37+
- name: Upload build artifacts
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: production-build
41+
path: ./build
42+
43+
- name: Deploy to GitHub Pages
44+
uses: peaceiris/actions-gh-pages@v3
45+
with:
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
publish_dir: ./build
48+
cname: ticketfy.pymmdrza.com # Optional: If you have a custom domain

0 commit comments

Comments
 (0)