Skip to content

Commit

Permalink
chore: version release
Browse files Browse the repository at this point in the history
  • Loading branch information
astappiev committed Oct 18, 2023
1 parent 0dea4b8 commit 7653212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

deploy-prod:
runs-on: ubuntu-latest
if: startsWith(github.event.head_commit.message, 'chore') && endsWith(github.event.head_commit.message, 'version release')
if: contains(github.event.workflow_run.head_commit.message, 'version release')
needs: [ build ]
steps:
- uses: actions/download-artifact@v3
Expand All @@ -101,7 +101,7 @@ jobs:
ProxyJump bastion
- name: Check if artifact exists
run: ssh learnweb test -f "${{ secrets.DEPLOY_PATH }}/ROOT##${{ needs.build.outputs.version }}.war" && exit 1
run: '! ssh learnweb test -f '${{ secrets.DEPLOY_PATH }}/ROOT##${{ needs.build.outputs.version }}.war' || false"

- name: Copy artifact to server
run: rsync -avzh --ignore-existing ROOT##*.war learnweb:${{ secrets.DEPLOY_PATH }}/
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>de.l3s</groupId>
<artifactId>learnweb</artifactId>
<!-- Because Tomcat treats version as String, we need to use zero paddings to make sure v10 is newer than v9 -->
<version>3.21.01</version>
<version>3.22.00</version>
<packaging>war</packaging>

<name>Learnweb</name>
Expand Down

0 comments on commit 7653212

Please sign in to comment.