diff --git a/README.md b/README.md index b8108f7..09c2352 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,10 @@ _This action_ packages _your action_ as OCI artifacts and publishes it to the [GitHub Container registry](ghcr.io). -This allows your action to be consumed as an _immutable_ package even if a [semver](https://semver.org/) is specified in the consumer's workflow file. +This allows your action to be consumed as an _immutable_ package even if a [SemVer](https://semver.org/) is specified in the consumer's workflow file. -Your action workflow must be triggered on `release` as in the following example. The release's title must follow [semantic versioning](https://semver.org/). Then consumers of your action will then be able to specify the version, e.g., `- uses: your-name/your-action@v1.2.3` or even `- uses: your-name/your-action@v1`. +Your action workflow must be triggered on `release` as in the following example. The release's title must follow [semantic versioning](https://semver.org/). +Then consumers of your action will then be able to specify the version, e.g., `- uses: your-name/your-action@v1.2.3` or even `- uses: your-name/your-action@v1`. ## Usage diff --git a/generate-new-version.sh b/generate-new-version.sh deleted file mode 100755 index fbe0e37..0000000 --- a/generate-new-version.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -VERSION=$1 -MESSAGE=$2 - -if [ -z "$VERSION" ] -then - echo "No version supplied" - exit 1 -fi - -if [ -z "$MESSAGE" ] -then - echo "No message supplied" - exit 1 -fi - -echo "Generating new version $VERSION with message $MESSAGE" - -#sed -i '' -E 's/ddivad195\/publish-action-package\/package-and-publish.*$/ddivad195\/publish-action-package\/package-and-publish@'$VERSION'/g' action.yml -npm run bundle -git add . -git commit -m "$VERSION: $MESSAGE" -git push -git tag $VERSION -git push origin $VERSION -gh release create --repo ddivad195/publish-action-package --title $VERSION --notes $VERSION $VERSION \ No newline at end of file