From 44b163204bde5e45b22179ab1da437f26ca0b015 Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh Date: Sun, 12 Mar 2023 13:17:54 +0530 Subject: [PATCH 01/11] readme changes --- CHANGELOG.md | 2 +- README.md | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e546acbf..6a8a7cc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog All notable changes to this project will be documented in this file. -## [2.0.1] - 2023-03-12 +## [2.0.2] - 2023-03-12 ### Improved - Fix bug on header and footer. diff --git a/README.md b/README.md index 1afa1d49..67957023 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ The necessary changes to be made to updateCell function in order to prevent the ``` -### Is your excel file password protected ? ( We got u covered ) +### Is your excel file password protected ? `Protect helps you to apply and remove password protection on your excel file.` [protect](https://github.com/justkawal/protect.git) @@ -159,7 +159,7 @@ Use `FilePicker` to pick files in Flutter Web. [FilePicker](https://pub.dev/pack ```dart import 'package:flutter/services.dart' show ByteData, rootBundle; - /* Your blah blah code here */ + /* Your ......other important..... code here */ ByteData data = await rootBundle.load('assets/existing_excel_file.xlsx'); var bytes = data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes); diff --git a/pubspec.yaml b/pubspec.yaml index f76fc286..8bbf3777 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: excel description: A flutter and dart library for reading, creating, editing and updating excel sheets with compatible both on client and server side. -version: 2.0.1 +version: 2.0.2 homepage: https://github.com/justkawal/excel environment: From 33e9ee31dafbf611a847d6825adc146823a2bdd3 Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh Date: Sun, 12 Mar 2023 13:23:27 +0530 Subject: [PATCH 02/11] add publish.yml --- .github/workflows/publish.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..c67d9aa7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,14 @@ +# .github/workflows/publish.yml +name: Publish to pub.dev + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' # for tags like: 'v1.2.3' + +jobs: + publish: + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + with: + # Specify the github actions deployment environment + environment: pub.dev \ No newline at end of file From ecb38479874f85655a6c0b207065fca5f6c01334 Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh Date: Sun, 12 Mar 2023 13:32:22 +0530 Subject: [PATCH 03/11] publish with branch push --- .github/workflows/publish.yml | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c67d9aa7..6583d06e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,14 +1,27 @@ # .github/workflows/publish.yml -name: Publish to pub.dev - +name: Publish package to pub.dev on: push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+*' # for tags like: 'v1.2.3' - + branches: + - publish jobs: - publish: - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 - with: - # Specify the github actions deployment environment - environment: pub.dev \ No newline at end of file + build: + runs-on: ubuntu-latest + container: + image: google/dart:latest + steps: + - uses: actions/checkout@v1 + - name: Setup credentials + run: | + mkdir -p ~/.pub-cache + cat < ~/.pub-cache/credentials.json + { + "accessToken":"${{ secrets.OAUTH_ACCESS_TOKEN }}", + "refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}", + "tokenEndpoint":"https://accounts.google.com/o/oauth2/token", + "scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ], + "expiration": 1570721159347 + } + EOF + - name: Publish package + run: pub publish -f \ No newline at end of file From 87bf63675fd58aea1efd08906f23c3fce13d6874 Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh Date: Sun, 12 Mar 2023 13:33:01 +0530 Subject: [PATCH 04/11] publish with push on publish branch --- .github/workflows/publish.yml | 36 ++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6583d06e..455071c9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,27 +1,29 @@ # .github/workflows/publish.yml name: Publish package to pub.dev + on: push: - branches: + branches: - publish + jobs: build: runs-on: ubuntu-latest container: - image: google/dart:latest + image: google/dart:latest steps: - - uses: actions/checkout@v1 - - name: Setup credentials - run: | - mkdir -p ~/.pub-cache - cat < ~/.pub-cache/credentials.json - { - "accessToken":"${{ secrets.OAUTH_ACCESS_TOKEN }}", - "refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}", - "tokenEndpoint":"https://accounts.google.com/o/oauth2/token", - "scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ], - "expiration": 1570721159347 - } - EOF - - name: Publish package - run: pub publish -f \ No newline at end of file + - uses: actions/checkout@v1 + - name: Setup credentials + run: | + mkdir -p ~/.pub-cache + cat < ~/.pub-cache/credentials.json + { + "accessToken":"${{ secrets.OAUTH_ACCESS_TOKEN }}", + "refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}", + "tokenEndpoint":"https://accounts.google.com/o/oauth2/token", + "scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ], + "expiration": 1570721159347 + } + EOF + - name: Publish package + run: pub publish -f From 684b9fdb630068a207047097642bb467ba1efe63 Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh Date: Sun, 12 Mar 2023 14:01:46 +0530 Subject: [PATCH 05/11] workflow changes --- .github/workflows/dart.yml | 4 ++-- .github/workflows/publish.yml | 5 +++-- CHANGELOG.md | 4 ++++ README.md | 6 +++--- pubspec.yaml | 2 +- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 86e590e8..4ba9f940 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -7,9 +7,9 @@ name: Dart on: push: - branches: [ null-safety, master ] + branches: [ null-safety, publish ] pull_request: - branches: [ null-safety, master ] + branches: [ null-safety, publish ] jobs: build: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 455071c9..52d3f9b2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,8 +3,9 @@ name: Publish package to pub.dev on: push: - branches: - - publish + branches: [ publish ] + pull_request: + branches: [ publish ] jobs: build: diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a8a7cc3..1a207d5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog All notable changes to this project will be documented in this file. +## [2.0.3] - 2023-03-12 +### Improved +- Readme updated. + ## [2.0.2] - 2023-03-12 ### Improved - Fix bug on header and footer. diff --git a/README.md b/README.md index 67957023..5a9c3565 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Excel +# If you find this tool useful! Please drop a ⭐️. + Platform @@ -35,8 +37,6 @@ #### This library is [MIT](https://github.com/justkawal/excel/blob/40b8b1ed8c3c213d8911784ddd40bf97841977a1/LICENSE#L1) licensed So, it's free to use anytime, anywhere without any consent, because we believe in Open Source work. -### If you find this tool useful! Please star this repo and give a like on [Excel](https://www.pub.dev/packages/excel). - # Lets Get Started ### 1. Depend on it @@ -45,7 +45,7 @@ Add this to your package's `pubspec.yaml` file: ```yaml dependencies: - excel: any + excel: 2.0.3 ``` ### 2. Install it diff --git a/pubspec.yaml b/pubspec.yaml index 8bbf3777..b6a2ecba 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: excel description: A flutter and dart library for reading, creating, editing and updating excel sheets with compatible both on client and server side. -version: 2.0.2 +version: 2.0.3 homepage: https://github.com/justkawal/excel environment: From 679222191b43fbd0e8f68f3ca93781fad01fe33a Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh Date: Sun, 12 Mar 2023 14:03:04 +0530 Subject: [PATCH 06/11] Empty Commit From 4e9e1ed1daa35ce786c496e58487fc57def9fe4b Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh <49296873+justkawal@users.noreply.github.com> Date: Sun, 12 Mar 2023 14:06:40 +0530 Subject: [PATCH 07/11] Update CODEOWNERS --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cea1d70c..c77583b7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ # This file is used to define a set of default reviewers. -* @AlexanderJohr @FauconSpartiate +* @AlexanderJohr @FauconSpartiate @justkawal From bc3b4b7a50093569151c543bbc41211996986d2a Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh Date: Sun, 12 Mar 2023 14:07:26 +0530 Subject: [PATCH 08/11] remove on pull request --- .github/workflows/publish.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 52d3f9b2..2fc2294c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,8 +4,6 @@ name: Publish package to pub.dev on: push: branches: [ publish ] - pull_request: - branches: [ publish ] jobs: build: From 9d83abbabf77a03b9430f58f26aaa254658bbdfa Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh Date: Sun, 12 Mar 2023 14:09:39 +0530 Subject: [PATCH 09/11] update dart.yml --- .github/workflows/dart.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 4ba9f940..f823a16d 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -7,7 +7,7 @@ name: Dart on: push: - branches: [ null-safety, publish ] + branches: [ null-safety ] pull_request: branches: [ null-safety, publish ] From cf0275bbea1650c7300f92e3219c29eed5e7763f Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh <49296873+justkawal@users.noreply.github.com> Date: Sun, 12 Mar 2023 14:26:43 +0530 Subject: [PATCH 10/11] Update dart.yml --- .github/workflows/dart.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index f823a16d..a17d43e6 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -7,9 +7,9 @@ name: Dart on: push: - branches: [ null-safety ] + branches: [ developement ] pull_request: - branches: [ null-safety, publish ] + branches: [ developement, publish ] jobs: build: From 9bb18f7496f81b5e952b0e9d376a3846645d0817 Mon Sep 17 00:00:00 2001 From: Kawaljeet Singh Date: Sun, 12 Mar 2023 14:36:46 +0530 Subject: [PATCH 11/11] last test for automated publishing --- CHANGELOG.md | 4 ++++ README.md | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a207d5d..3847d2f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog All notable changes to this project will be documented in this file. +## [2.0.4] - 2023-03-12 +### Improved +- Automated Publishing. + ## [2.0.3] - 2023-03-12 ### Improved - Readme updated. diff --git a/README.md b/README.md index 5a9c3565..69ff209e 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Add this to your package's `pubspec.yaml` file: ```yaml dependencies: - excel: 2.0.3 + excel: 2.0.4 ``` ### 2. Install it diff --git a/pubspec.yaml b/pubspec.yaml index b6a2ecba..7955c03d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: excel description: A flutter and dart library for reading, creating, editing and updating excel sheets with compatible both on client and server side. -version: 2.0.3 +version: 2.0.4 homepage: https://github.com/justkawal/excel environment: