Skip to content

Commit

Permalink
configure CD and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobaraujo7 committed Aug 24, 2024
1 parent 434d4c5 commit 072662c
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# name: Flutter CI

# on:
# push:
# branches: [main]
# pull_request:
# branches: [main]

# 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

# - name: Install dependencies
# run: flutter pub get

# - name: Run Analyze
# run: flutter analyze --no-fatal-infos ./lib/**/*.dart ./test/**/*.dart

# - name: Check format
# run: dart format --set-exit-if-changed ./lib ./test

# - name: Run tests
# run: flutter test --coverage

# - name: Upload coverage reports to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .github/workflows/publish.yml
name: Publish to pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable

- name: Install dependencies
run: flutter pub get

- name: Publish
run: dart pub publish --force

0 comments on commit 072662c

Please sign in to comment.