Skip to content

Commit

Permalink
cd: github.io 빌드 명령어 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
w8385 committed Sep 21, 2024
1 parent 158f4f1 commit bbce8e3
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/flutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,31 @@ jobs:
flutter pub get
flutter analyze
- name: Deploy to github.io 🚀
build:
name: Build Flutter 🛠️
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java ☕
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Flutter 🐦
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}

- name: Build Web 🌐
run: |
flutter pub get
flutter build web --release --web-renderer html
cd build/web
git init
git config --global user.name "w8385"
git config --global user.email "[email protected]"
git remote add origin [email protected]:My-solved/My-solved.github.io.git
git add .
git commit -m "pages update"
git push

0 comments on commit bbce8e3

Please sign in to comment.