Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/task-5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: task-5-workflow
run-name: Task 5 workflow
on:
push:
branches:
- main
paths:
- "website/**"

defaults:
run:
working-directory: website
jobs:
deploy-website:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: FirebaseExtended/action-hosting-deploy@v0
id: deploy
with:
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
channelId: live
projectId: ${{ vars.FIREBASE_PROJECT_ID }}
entryPoint: website
# Cannot use details_url here because it is production deployment
- run: echo "Website deployed to https://${{ vars.FIREBASE_PROJECT_ID }}.web.app"
2 changes: 1 addition & 1 deletion website/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1>Calculator App</h1>
<p><a href="./releases.html">Version History & Releases</a></p>
</div>
<footer>
<p>&copy; 2024 Calculator App Company</p>
<p>&copy; 2024 Calculator App Company - GithubActions Kata</p>
<p><a href="#privacy-policy">Privacy Policy</a> | <a href="#terms-of-service">Terms of Service</a></p>
</footer>
</div>
Expand Down