Skip to content

Commit be5dafe

Browse files
committed
add workflows
1 parent 2ab82d4 commit be5dafe

File tree

6 files changed

+88
-7
lines changed

6 files changed

+88
-7
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Deploy
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+*'
67

78
jobs:
89
dependencies:
@@ -18,7 +19,7 @@ jobs:
1819
flutter-version: "3.29.0"
1920
channel: 'stable'
2021
cache: true
21-
22+
2223
- name: Run Flutter build
2324
run: |
2425
# Enable web config in flutter

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish to pub.dev
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Publish GitHub Release"]
6+
types:
7+
- completed
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Flutter
22+
uses: subosito/flutter-action@v2
23+
with:
24+
flutter-version: "3.29.0"
25+
channel: 'stable'
26+
cache: true
27+
28+
- name: Install dependencies
29+
run: flutter pub get
30+
31+
- name: Authenticate with pub.dev
32+
run: dart pub token add https://pub.dev
33+
34+
- name: Verify package
35+
run: flutter pub publish --dry-run
36+
37+
- name: Publish to pub.dev
38+
run: flutter pub publish -f

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish GitHub Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: Create GitHub Release
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Extract tag name
21+
id: tag
22+
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
23+
24+
- name: Generate release notes
25+
id: release_notes
26+
run: |
27+
echo "## Changes in $TAG_NAME" > RELEASE_NOTES.md
28+
echo "" >> RELEASE_NOTES.md
29+
git log --pretty=format:"- %s" $(git describe --tags --abbrev=0 @^)..@ >> RELEASE_NOTES.md
30+
31+
- name: Create GitHub Release
32+
uses: softprops/action-gh-release@v2
33+
with:
34+
tag_name: ${{ env.TAG_NAME }}
35+
name: ${{ env.TAG_NAME }}
36+
body_path: RELEASE_NOTES.md
37+
draft: false
38+
prerelease: false

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
## 0.0.2
22

33
* Add support update chart
4-
* Adding example of how to use graphify
4+
* Adding example of how to use graphify
5+
6+
## 1.0.8
7+
8+
* Optimize and refactor the code

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Bekeev Imankadyr
3+
Copyright (c) 2024 Warioddly
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: graphify
22
description: "A data visualization charts library, based on Apache Echarts, able to build advanced charts like WebGL 3D, Bar, Line, Candlestick, Radar, Graph, Tree etc."
3-
homepage: "https://github.com/warioddly/graphify"
3+
repository: "https://github.com/warioddly/graphify"
44
documentation: "https://echarts.apache.org/en/option.html#title"
55

6-
version: 1.0.7
6+
version: 1.0.8
77

88
environment:
99
sdk: '>=3.2.3 <4.0.0'
@@ -47,4 +47,4 @@ topics:
4747
- charts
4848
- echarts
4949
- webgl
50-
- diagram
50+
- diagram

0 commit comments

Comments
 (0)