Skip to content

Commit 6211a0b

Browse files
Allow webhook dispatching
1 parent 96f7d88 commit 6211a0b

File tree

1 file changed

+4
-59
lines changed

1 file changed

+4
-59
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,13 @@
1-
# name: Deploy
2-
3-
# on:
4-
# push:
5-
# branches:
6-
# - main
7-
8-
# jobs:
9-
# build:
10-
# name: Build
11-
# runs-on: ubuntu-latest
12-
13-
# steps:
14-
# - name: Checkout repo
15-
# uses: actions/checkout@v2
16-
17-
# - name: Setup Node
18-
# uses: actions/setup-node@v1
19-
# with:
20-
# node-version: 18
21-
22-
# - name: Install dependencies
23-
# uses: bahmutov/npm-install@v1
24-
25-
# - name: Build project
26-
# run: npm run build
27-
28-
# - name: Create CNAM file
29-
# run: npm run add-domain
30-
31-
# - name: Upload production-ready build files
32-
# uses: actions/upload-artifact@v2
33-
# with:
34-
# name: production-files
35-
# path: ./dist
36-
37-
# deploy:
38-
# name: Deploy
39-
# needs: build
40-
# runs-on: ubuntu-latest
41-
# if: github.ref == 'refs/heads/main'
42-
43-
# steps:
44-
# - name: Setup Node
45-
# uses: actions/setup-node@v1
46-
# with:
47-
# node-version: 18
48-
49-
# - name: Download artifact
50-
# uses: actions/download-artifact@v2
51-
# with:
52-
# name: production-files
53-
# path: ./dist
54-
55-
# - name: Deploy to GitHub Pages
56-
# uses: peaceiris/actions-gh-pages@v3
57-
# with:
58-
# github_token: ${{ secrets.GITHUB_TOKEN }}
59-
# publish_dir: ./dist
601
name: Build and Deploy
612
on:
623
push:
634
branches:
645
- main
656
workflow_dispatch:
7+
# Allows external webhook trigger
8+
repository_dispatch:
9+
types:
10+
- webhook
6611
permissions:
6712
contents: write
6813
jobs:

0 commit comments

Comments
 (0)