Skip to content

Commit

Permalink
deploy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
arifayduran committed Dec 8, 2024
1 parent a17cf8b commit c50e7ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/deploy_firebase_and_github_on_push.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting and GitHub Pages on push

on:
Expand All @@ -22,23 +19,27 @@ jobs:
with:
flutter-version: '3.24.5' # Optionally specify the version you need

# Step 3: Install dependencies and build for Firebase Hosting (base href is for root)
# Step 3: Install Firebase CLI globally
- name: Install Firebase CLI
run: npm install -g firebase-tools

# Step 4: Install dependencies and build for Firebase Hosting (base href is for root)
- name: Build for Firebase Hosting
run: flutter pub get && flutter build web --release --web-renderer canvaskit # /html

# Step 4: Deploy to Firebase Hosting
# Step 5: Deploy to Firebase Hosting
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ARIFAYDURAN_DEV }}
channelId: live
projectId: arifayduran-dev

# Step 5: Build for GitHub Pages (with a specific base href for GitHub Pages)
# Step 6: Build for GitHub Pages (with a specific base href for GitHub Pages)
- name: Build for GitHub Pages
run: flutter pub get && flutter build web --release --web-renderer canvaskit --base-href /arifayduran_dev/ # /html

# Step 6: Deploy to GitHub Pages
# Step 7: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
7 changes: 4 additions & 3 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
</head>
<body>
<script src="flutter_bootstrap.js" async></script>
<!-- <canvas id="myCanvas"></canvas>
<canvas id="myCanvas"></canvas>

<!-- Dein Skript hier am Ende -->
<script>
if (
navigator.userAgent.indexOf("Safari") !== -1 &&
Expand All @@ -52,7 +53,7 @@
[contextType].concat(Array.prototype.slice.call(arguments, 1)),
);
};
}
</script> -->
}
</script>
</body>
</html>

0 comments on commit c50e7ac

Please sign in to comment.