@@ -91,38 +91,22 @@ jobs:
9191
9292 create_release :
9393 name : Create Release
94- needs : [packaging]
94+ needs : [packaging, get_version ]
9595 runs-on : ubuntu-22.04
9696 permissions :
9797 contents : write
9898
9999 steps :
100- - name : Get version
101- id : get_version
102- run : |
103- echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
104- echo ${{ env.VERSION }}
105-
106100 - uses : actions/checkout@v6
107101 with :
108102 fetch-depth : 0
109103
110- - name : Set up Python ${{ matrix.python-version }}
111- uses : actions/setup-python@v6
112- with :
113- python-version : 3.9
114-
115- - name : Install dependencies
116- run : |
117- sudo apt-get install -yqq redis-server autoconf automake
118- sudo apt-get install -yqq libjson-c-dev libhiredis-dev libgtest-dev libgmock-dev
119- sudo systemctl stop redis
120- python -m pip install --upgrade pip wheel
121- pip install tox
122-
123- - name : Build dist pkg
104+ - name : Check github variables
105+ env :
106+ VERSION : ${{ needs.get_version.outputs.version }}
124107 run : |
125- tox -e dist
108+ echo "Package version from git: ${VERSION}"
109+ git archive --format=tar.gz -o redis-ipc-$VERSION.tar.gz --prefix=redis-ipc-$VERSION/ v${VERSION}
126110
127111 # download all artifacts to named path
128112 - uses : actions/download-artifact@v8
@@ -136,13 +120,13 @@ jobs:
136120 ls -l packages/
137121
138122 - name : Generate changes file
139- uses : sarnold/gitchangelog-action@master
123+ uses : sarnold/gitchangelog-action@915234f151ceffb7a8c4f76de77e4ae321087b8f # v1.1.1
140124 with :
141125 github_token : ${{ secrets.GITHUB_TOKEN}}
142126
143127 - name : Create draft release
144128 id : create_release
145- uses : softprops/action-gh-release@v3
129+ uses : softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
146130 env :
147131 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
148132 with :
0 commit comments