Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update github actions #2

Merged
merged 4 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
on: ["push", "pull_request"]
on: ["pull_request"]

name: Test Coveralls

jobs:

test:
name: Test
timeout-minutes: 10
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/[email protected]

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.9'
channel: 'stable'
- run: flutter test --coverage

- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
steps:

- name: Checkout
uses: actions/[email protected]

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.9'
channel: 'stable'
- run: flutter test --coverage

- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]

28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish to pub.dev

on:
push:
tags:
# Must align with the tag-pattern configured on pub.dev.
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
name: Publish
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
id-token: write # Allows to publish to pub.dev without personal credentials

steps:

- name: Checkout
uses: actions/[email protected]

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.9'
channel: 'stable'
- run: flutter pub get
- run: flutter pub publish --dry-run
- run: flutter pub publish --force
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_markdown_latex
description: This extension is created to enhance the functionality of the flutter_markdown package by adding support for rendering LaTeX in markdown. The rendering of LaTeX is achieved through the utilization of the flutter_math_fork package.
description: A extension to render LaTeX in markdown for package flutter_markdown.
version: 0.1.1
homepage: https://github.com/xushengs/flutter_markdown_latex

Expand Down