Skip to content

Commit

Permalink
Update and rename linux.yml to main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
depombo authored Jan 29, 2025
1 parent ece5853 commit 06cb56a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/linux.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy Flutter Web to Cloudflare Pages

on:
push:
branches:
- main # Adjust this if your main branch has a different name
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml

- name: Flutter version used
run: flutter --version

- name: Install dependencies
run: flutter pub get

- name: Build Flutter web
run: flutter build web --release

- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: "e4f5d18aedd28895008b8e1f6845a3bc"
projectName: "flutter-chatgpt"
directory: build/web

0 comments on commit 06cb56a

Please sign in to comment.