3535 exit 1
3636 fi
3737
38- - name : Update version in app.py
39- run : |
40- sed -i 's/APP_VERSION = "[^"]*"/APP_VERSION = "${{ inputs.version }}"/' app.py
41- grep "APP_VERSION" app.py
42-
43- - name : Update version in sw.js
44- run : |
45- sed -i "s/const CACHE_NAME = 'chemediaho-v[^']*'/const CACHE_NAME = 'chemediaho-v${{ inputs.version }}'/" frontend/sw.js
46- grep "CACHE_NAME" frontend/sw.js
47-
4838 - name : Get last release tag
4939 id : last_release
5040 run : |
@@ -150,17 +140,11 @@ jobs:
150140
151141 console.log('Generated changelog:');
152142 console.log(changelog);
153-
154- - name : Commit version bump
155- run : |
156- git config user.name "github-actions[bot]"
157- git config user.email "github-actions[bot]@users.noreply.github.com"
158- git add app.py frontend/sw.js
159- git commit -m "chore: bump version to ${{ inputs.version }}"
160- git push origin main
161143
162144 - name : Create and push tag
163145 run : |
146+ git config user.name "github-actions[bot]"
147+ git config user.email "github-actions[bot]@users.noreply.github.com"
164148 git tag -a "v${{ inputs.version }}" -m "Release v${{ inputs.version }}"
165149 git push origin "v${{ inputs.version }}"
166150
@@ -178,27 +162,3 @@ jobs:
178162 name: '${{ inputs.version }}',
179163 body: changelog
180164 });
181-
182- # ---------------------------
183- # DOCKER HUB DEPLOY
184- # ---------------------------
185-
186- - name : Set up Docker Buildx
187- uses : docker/setup-buildx-action@v3
188-
189- - name : Login to Docker Hub
190- uses : docker/login-action@v3
191- with :
192- username : ${{ secrets.DOCKERHUB_USERNAME }}
193- password : ${{ secrets.DOCKERHUB_TOKEN }}
194-
195- - name : Build and push multi-arch Docker image
196- uses : docker/build-push-action@v6
197- with :
198- context : .
199- push : true
200- platforms : linux/amd64,linux/arm64
201- tags : |
202- gablilli/chemediaho:${{ inputs.version }}
203- gablilli/chemediaho:latest
204-
0 commit comments