File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 18
18
19
19
steps :
20
20
- uses : actions/checkout@v2
21
+
22
+ # This is a temporary workaround until GitHub Actions start natively
23
+ # supporting signed commits like they should
24
+ - name : Import GPG key
25
+ id : import_gpg
26
+ uses : crazy-max/ghaction-import-gpg@v4
27
+ with :
28
+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
29
+ passphrase : ${{ secrets.PASSPHRASE }}
30
+ git_user_signingkey : true
31
+ git_commit_gpgsign : true
32
+
21
33
- name : Set up Python
22
34
uses : actions/setup-python@v2
23
35
with :
@@ -37,20 +49,24 @@ jobs:
37
49
- name : Set global variables
38
50
shell : bash
39
51
run : |
40
- echo "VERSION=${{ steps.get_version.outputs.VERSION}}" >> $GITHUB_ENV
52
+ echo "VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV
41
53
42
54
- name : Set __version__
43
55
shell : bash
44
56
run : sed -i "s@\".*\"@\"${VERSION}\"@g" "fortls/_version.py"
45
57
46
- - name : Commit the new version
58
+ - name : Commit the new version to dev
47
59
shell : bash
48
60
run : |
49
61
git config --global user.name 'gnikit'
50
- git config --global user.email '[email protected] '
51
- git commit fortls/_version.py -m "Auto-Update version"
62
+ git config --global user.email '[email protected] '
63
+ git fetch origin
64
+ git switch dev
65
+ git commit -S fortls/_version.py -m "Auto-Update version" -v
66
+ git push
52
67
git tag -f "${VERSION}"
53
- git push -f
68
+ git push --delete origin "${VERSION}"
69
+ git push origin "${VERSION}"
54
70
55
71
- name : Build package
56
72
run : python -m build
Original file line number Diff line number Diff line change 10
10
11
11
- Changed ` USE_info ` named tuple to storing use modules as ` sets ` instead of ` lists `
12
12
- Changed ` include_dirs ` from a ` list ` to a ` set `
13
+ - Automates the versioning with GitHub releases
13
14
14
15
### Fixed
15
16
You can’t perform that action at this time.
0 commit comments