Skip to content

Commit 35de559

Browse files
committed
automated release
1 parent e6f6f8f commit 35de559

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/github-release.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,35 @@ jobs:
104104
uses: actions/download-artifact@master
105105
with:
106106
name: plugin-zip
107+
108+
- name: install subversion
109+
run: |
110+
sudo apt-get update
111+
sudo apt-get -y install subversion
112+
113+
- name: checkout svn
114+
run: |
115+
svn co https://plugins.svn.wordpress.org/gdata-antivirus/ svn/gdata-antivirus
116+
117+
- name: unzip
118+
run: unzip gdata-antivirus-${{needs.get-version.outputs.plugin_version}}.zip -d svn/gdata-antivirus-${{needs.get-version.outputs.plugin_version}}
119+
120+
- name: check version changelog
121+
run: |
122+
grep "= ${{needs.get-version.outputs.plugin_version}} =" svn/gdata-antivirus-${{needs.get-version.outputs.plugin_version}}/Readme.txt
123+
124+
- name: copy files
125+
run: |
126+
rm -rf svn/gdata-antivirus/trunk/*
127+
cp -r svn/gdata-antivirus-${{needs.get-version.outputs.plugin_version}}/* svn/gdata-antivirus/trunk/
128+
svn update svn/gdata-antivirus/trunk/*
129+
svn cp svn/gdata-antivirus/trunk/ svn/gdata-antivirus/tags/${{needs.get-version.outputs.plugin_version}}
130+
131+
- name: commit
132+
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'beta')
133+
run: |
134+
svn ci -m 'release ${{needs.get-version.outputs.plugin_version}}' --username ${{ secrets.SVN_USERNAME }} --password ${{ secrets.SVN_PASSWORD }} svn/gdata-antivirus
135+
107136
- name: Release
108137
uses: softprops/action-gh-release@v2
109138
with:

Readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ While the released code is hosted on the WordPress svn, we develop the plugin on
5656

5757
== Changelog ==
5858

59+
= 2.1.0-beta4 =
60+
* something
61+
5962
= 2.1.0 =
6063
* bugfix: [full scan runs in loop](https://github.com/GDATASoftwareAG/wordpress-gdata-antivirus/issues/37)
6164
* bugifx: fails on duplicate key when detecting the same file twice

0 commit comments

Comments
 (0)