Skip to content

Commit

Permalink
fix: Release workflow (#312)
Browse files Browse the repository at this point in the history
* 1

* 1.1

* feat: Updated release workflow

* fix: Updated dartdoc workflow to not run on forks

* doc: Added comment to version

* fix: Fixed changelog order

* Update pubspec.yaml
  • Loading branch information
M123-dev committed Dec 14, 2021
1 parent 8b6c9bc commit 68c61ba
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dartdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
deploy-pages:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
if: github.repository_owner == 'openfoodfacts'
steps:
- name: Chekout code
uses: actions/checkout@v2
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@
if: ${{ steps.release.outputs.release_created }}
run: pub global activate cider && cider version "${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}"

- name: Release on pub.dev
- name: Setup credentials
if: ${{ steps.release.outputs.release_created }}
uses: k-paxian/dart-package-publisher@v1.3
with:
skipTests: true # skipping in favor of not breaking the workflow
format: true
credentialJson: ${{ secrets.PUB_DEV_CREDENTIALS_JSON }}
run: |
cat <<EOF > $PUB_CACHE/credentials.json
${{ secrets.PUB_DEV_CREDENTIALS_JSON }}
EOF
- name: Publish package
if: ${{ steps.release.outputs.release_created }}
run: dart pub publish --force
12 changes: 7 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
## [1.4.0](https://www.github.com/openfoodfacts/openfoodfacts-dart/compare/v1.3.9...v1.4.0) (2021-11-19)


### Features

* [#233](https://www.github.com/openfoodfacts/openfoodfacts-dart/issues/233) - new class OpenFoodFactsCountry, clearer than "cc" ([#292](https://www.github.com/openfoodfacts/openfoodfacts-dart/issues/292)) ([3dda3f4](https://www.github.com/openfoodfacts/openfoodfacts-dart/commit/3dda3f46e290c71bb6cb23e553163d62ea9159fb))

## [1.5.0](https://www.github.com/openfoodfacts/openfoodfacts-dart/compare/v1.4.0...v1.5.0) (2021-12-09)


### Features

* [#301](https://www.github.com/openfoodfacts/openfoodfacts-dart/issues/301) - new method getProductUri ([#302](https://www.github.com/openfoodfacts/openfoodfacts-dart/issues/302)) ([85169f0](https://www.github.com/openfoodfacts/openfoodfacts-dart/commit/85169f083ad7bc1c83c67e817de32a942700eb92))
* [#304](https://www.github.com/openfoodfacts/openfoodfacts-dart/issues/304) - new method setProductImageAngle and setProductImageCrop ([#309](https://www.github.com/openfoodfacts/openfoodfacts-dart/issues/309)) ([c69f3f6](https://www.github.com/openfoodfacts/openfoodfacts-dart/commit/c69f3f639f47291a007185c59c89b652bbf52098))


## [1.4.0](https://www.github.com/openfoodfacts/openfoodfacts-dart/compare/v1.3.9...v1.4.0) (2021-11-19)

### Features

* [#233](https://www.github.com/openfoodfacts/openfoodfacts-dart/issues/233) - new class OpenFoodFactsCountry, clearer than "cc" ([#292](https://www.github.com/openfoodfacts/openfoodfacts-dart/issues/292)) ([3dda3f4](https://www.github.com/openfoodfacts/openfoodfacts-dart/commit/3dda3f46e290c71bb6cb23e553163d62ea9159fb))

### [1.3.9](https://www.github.com/openfoodfacts/openfoodfacts-dart/compare/v1.3.8...v1.3.9) (2021-11-17)

### Features
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: openfoodfacts
description: Dart package for the Open Food Facts API, a food products database made by everyone, for everyone.
version: 1.3.9
# The version is automatically, temporarily increased by the release workflow, changing it manually has no effect.
version: 1.0.0
homepage: https://github.com/openfoodfacts/openfoodfacts-dart

environment:
Expand Down

0 comments on commit 68c61ba

Please sign in to comment.