commit 4077c014d54ea8f5970c3888866c65f848cb1dfb
parent a6a68ecfd15a8e49812c6753f4398cb80d353b61
Author: Eric Scouten <scouten@adobe.com>
Date: Thu, 16 Jun 2022 11:01:57 -0700
Fix bug in Cargo.toml updates (#49)
Also fix a formatting bug in CHANGELOG generation
Diffstat:
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
@@ -56,7 +56,7 @@ jobs:
- name: Update changelog
run: |
- (head -8 CHANGELOG.md && echo "## $VERSION" && date "+_%e %B %Y_" && echo "" && (echo "$CHANGELOG" | sed -E 's_\(#([0-9]+)\)_([#\1](https://github.com/contentauth/c2pa-rs/pull/\1)\)_') && echo "" && tail -n +9 CHANGELOG.md) > CHANGELOG.new.md
+ (head -8 CHANGELOG.md && echo "## $VERSION" && date "+_%d %B %Y_" && (echo "$CHANGELOG" | sed -E 's_\(#([0-9]+)\)_([#\1](https://github.com/contentauth/c2pa-rs/pull/\1)\)_') && echo "" && tail -n +9 CHANGELOG.md) > CHANGELOG.new.md
mv CHANGELOG.new.md CHANGELOG.md
env:
VERSION: ${{ steps.set-version.outputs.version }}
@@ -69,14 +69,16 @@ jobs:
- name: Bump crate versions
run: |
- sed -i "s/^version = \"[^\"]*\"$/version = \"$VERSION\"/;" Cargo.toml
+ sed -i "s/^version = \"[^\"]*\"$/version = \"$VERSION\"/;" sdk/Cargo.toml
+ sed -i "s/^version = \"[^\"]*\"$/version = \"$VERSION\"/;" make_test_images/Cargo.toml
+ sed -i "s/^c2pa = \"[^\"]*\"$/version = \"$VERSION\"/;" README.md
env:
VERSION: ${{ steps.set-version.outputs.version }}
- name: Report differences for "prepare (release)" commit
run: git diff
- - name: Commit cargo.toml and changelog
+ - name: Commit Cargo.toml and changelog
uses: stefanzweifel/git-auto-commit-action@v4
id: commit
with:
diff --git a/CHANGELOG.md b/CHANGELOG.md
@@ -20,9 +20,8 @@ _16 June 2022_
* Remove need for using OpenSSL to generate certs by using pre-generated certs ([#41](https://github.com/contentauth/c2pa-rs/pull/41))
* Update README and pull request template with formatting changes ([#38](https://github.com/contentauth/c2pa-rs/pull/38))
-
## 0.3.0
-_ 8 June 2022_
+_08 June 2022_
* Make most jumbf_io functions crate private and move Store dependencies to Store ([#37](https://github.com/contentauth/c2pa-rs/pull/37))
* Remove c2patool source now that it's in its own repo ([#35](https://github.com/contentauth/c2pa-rs/pull/35))
@@ -37,21 +36,18 @@ _ 8 June 2022_
* Make Assertions opaque in the public SDK ([#22](https://github.com/contentauth/c2pa-rs/pull/22))
* Update c2pa requirement from 0.1 to 0.2 in /c2patool ([#23](https://github.com/contentauth/c2pa-rs/pull/23))
-
## 0.2.0
_26 May 2022_
* Fix dependency reference from c2patool crate to c2pa crate ([#21](https://github.com/contentauth/c2pa-rs/pull/21))
* (MINOR) Detailed API review for Ingredient struct ([#17](https://github.com/contentauth/c2pa-rs/pull/17))
-
## 0.1.3
_26 May 2022_
* Publish c2patool crate ([#20](https://github.com/contentauth/c2pa-rs/pull/20))
* Improve documentation ([#14](https://github.com/contentauth/c2pa-rs/pull/14))
-
## 0.1.2
_26 May 2022_
@@ -59,7 +55,6 @@ _26 May 2022_
* Fix error in formatting changelog
* Fix missing links in changelog
-
## 0.1.1
_26 May 2022_