Skip to content

Commit bf2bc67

Browse files
add workflow
1 parent 0e78014 commit bf2bc67

2 files changed

Lines changed: 58 additions & 9 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This file was auto-generated by the Firebase CLI
2+
# https://github.com/firebase/firebase-tools
3+
4+
name: Deploy to Firebase Hosting
5+
on:
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
checkout:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
add_secret_redirects:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: jsdaniell/create-json@v1.2.3
21+
with:
22+
name: "secret-redirects.json"
23+
json: ${{ secrets.SECRET_REDIRECTS }}
24+
- uses: mpmxyz/merge-json-with-template@latest
25+
with:
26+
source-file: "firebase.json"
27+
target-file: "secret-redirects.json"
28+
29+
deploy:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: FirebaseExtended/action-hosting-deploy@v0
34+
with:
35+
repoToken: ${{ secrets.GITHUB_TOKEN }}
36+
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_K_DEVCON }}
37+
channelId: live
38+
projectId: k-devcon

firebase.json

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
11
{
22
"hosting": {
33
"public": "public",
4-
"ignore": [
5-
"firebase.json",
6-
"**/.*",
7-
"**/node_modules/**"
8-
],
4+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
95
"redirects": [
106
{
117
"source": "/",
128
"destination": "https://k-devcon.com/",
139
"type": 302
1410
},
1511
{
16-
"source": "/linkedin",
17-
"destination": "https://jonghoonpark.com/2023/08/16/what-is-linkedin-and-how-can-i-use-it",
12+
"source": "/devcon2024",
13+
"destination": "https://k-devcon.com/entry/DEVCON-2024-%EC%BB%A8%ED%8D%BC%EB%9F%B0%EC%8A%A4%EB%A5%BC-%EA%B0%9C%EC%B5%9C-%ED%95%A9%EB%8B%88%EB%8B%A4-10122024",
1814
"type": 302
1915
},
2016
{
21-
"source": "/devcon2024",
22-
"destination": "https://k-devcon.com/entry/DEVCON-2024-%EC%BB%A8%ED%8D%BC%EB%9F%B0%EC%8A%A4%EB%A5%BC-%EA%B0%9C%EC%B5%9C-%ED%95%A9%EB%8B%88%EB%8B%A4-10122024",
17+
"source": "/daejeon-membership",
18+
"destination": "https://forms.gle/y8ymEMtdGp2WXFFeA",
19+
"type": 302
20+
},
21+
{
22+
"source": "/spring2025",
23+
"destination": "https://k-devcon.com/entry/%EB%8C%80%EC%A0%84-K-DEVCON-%EB%8C%80%EC%A0%84%EC%97%90%EC%84%9C-Spring-%EC%8A%A4%ED%84%B0%EB%94%94%EB%A5%BC-%EC%8B%9C%EC%9E%91%ED%95%A9%EB%8B%88%EB%8B%A4",
24+
"type": 302
25+
},
26+
{
27+
"source": "/slack",
28+
"destination": "https://join.slack.com/t/k-devcon/shared_invite/zt-2s0jgt0sy-ZQLQVYzjAeWfKdNGaUd5Ig",
29+
"type": 302
30+
},
31+
{
32+
"source": "/events",
33+
"destination": "https://k-devcon.com/category/%EB%8D%B0%EB%B8%8C%EC%BD%98%20%ED%96%89%EC%82%AC%20%EC%9D%BC%EC%A0%95",
2334
"type": 302
2435
}
2536
]

0 commit comments

Comments
 (0)