Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jamshale committed Apr 16, 2024
1 parent a8b2c93 commit 2c64147
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,42 @@ jobs:
working-directory: .
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Creating release"
remote_version=$(pip index versions aries-cloudagent)
version=$(grep -oP '(?<=Available versions: ).*?(?=,)' <<< "$remote_version")
git config --global user.name 'Release Bot'
git config --global user.email '[email protected]'
git remote set-url --push origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/jamshale/aries-acapy-plugins
git fetch --all
tag_output=(git tag -n0 "*$version*")
tags=0
for item in $items
do
tags=$((tags+1))
done
tag=""
if [ $tags -eq 0 ]
then
tag=$version
else
tag=$((tags+1))
git tag -a "$version.$tags" -m "Release $version"
git push origin "$version.$tags"
gh release create $version --title "Release for aries-cloudagent v$version" --notes "Release $version"
fi
git tag -a $tag -m "Release $tag"
git push origin $tag
gh release create $tag --title "Release for aries-cloudagent v$version" --notes "Release $tag"

0 comments on commit 2c64147

Please sign in to comment.