File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - main
5
7
tags :
6
8
- v*
7
9
@@ -12,13 +14,15 @@ jobs:
12
14
- uses : actions/checkout@v2
13
15
- name : Permissions
14
16
run : chmod 777 -R .
15
-
16
- with :
17
- image : sensson/rpmbuild:rockylinux-8
18
- options : -v ${{ github.workspace }}:/srv -e RELEASE=${{ github.ref }}
17
+ - name : Version
18
+ run : sed -i "s/##version##/${GITHUB_REF_NAME#v}/g" rpmbuild/SPECS/acronis-mysql-scripts.spec
19
+ - name : Build
20
+ run : docker run -v ${{ github.workspace }}:/srv -e RELEASE= sensson/rpmbuild:rockylinux-8
19
21
- name : Dependencies
22
+ if : startsWith(github.ref, 'refs/tags/')
20
23
run : pip install --user cloudsmith-cli
21
24
- name : Deploy
25
+ if : startsWith(github.ref, 'refs/tags/')
22
26
run : bash deploy-rpm.sh
23
27
env :
24
28
APIKEY : ${{ secrets.APIKEY }}
44
48
arch : ' amd64'
45
49
desc : ' Backups scripts to be used by Acronis to make backups of MySQL.'
46
50
- name : Dependencies
51
+ if : startsWith(github.ref, 'refs/tags/')
47
52
run : pip install --user cloudsmith-cli
48
53
- name : Deploy
54
+ if : startsWith(github.ref, 'refs/tags/')
49
55
run : bash deploy-deb.sh
50
56
env :
51
57
APIKEY : ${{ secrets.APIKEY }}
Original file line number Diff line number Diff line change 1
1
Name: acronis-mysql-scripts
2
- Version: %{ version }
2
+ Version: # # version##
3
3
Release: 1
4
4
License: MIT
5
5
Summary: MySQL backup scripts for Acronis
You can’t perform that action at this time.
0 commit comments