Skip to content

Commit 41b14ad

Browse files
committed
chore: Adds website deployment to firebase
1 parent 6ad35f3 commit 41b14ad

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/task-5.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: task-5-workflow
2+
run-name: Task 5 workflow
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "website/**"
9+
10+
defaults:
11+
run:
12+
working-directory: website
13+
jobs:
14+
deploy-website:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
- uses: FirebaseExtended/action-hosting-deploy@v0
20+
id: deploy
21+
with:
22+
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
23+
channelId: live
24+
projectId: ${{ vars.FIREBASE_PROJECT_ID }}
25+
entryPoint: website
26+
# Cannot use details_url here because it is production deployment
27+
- run: echo "Website deployed to https://${{ vars.FIREBASE_PROJECT_ID }}.web.app"

website/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1>Calculator App</h1>
1717
<p><a href="./releases.html">Version History & Releases</a></p>
1818
</div>
1919
<footer>
20-
<p>&copy; 2024 Calculator App Company</p>
20+
<p>&copy; 2024 Calculator App Company - GithubActions Kata</p>
2121
<p><a href="#privacy-policy">Privacy Policy</a> | <a href="#terms-of-service">Terms of Service</a></p>
2222
</footer>
2323
</div>

0 commit comments

Comments
 (0)