diff --git a/.github/workflows/task-5.yaml b/.github/workflows/task-5.yaml new file mode 100644 index 0000000..eeac9e5 --- /dev/null +++ b/.github/workflows/task-5.yaml @@ -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" diff --git a/website/public/index.html b/website/public/index.html index cde8c22..572b772 100644 --- a/website/public/index.html +++ b/website/public/index.html @@ -17,7 +17,7 @@