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 1818
1919 steps :
2020 - 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+
2133 - name : Set up Python
2234 uses : actions/setup-python@v2
2335 with :
@@ -37,20 +49,24 @@ jobs:
3749 - name : Set global variables
3850 shell : bash
3951 run : |
40- echo "VERSION=${{ steps.get_version.outputs.VERSION}}" >> $GITHUB_ENV
52+ echo "VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV
4153
4254 - name : Set __version__
4355 shell : bash
4456 run : sed -i "s@\".*\"@\"${VERSION}\"@g" "fortls/_version.py"
4557
46- - name : Commit the new version
58+ - name : Commit the new version to dev
4759 shell : bash
4860 run : |
4961 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
5267 git tag -f "${VERSION}"
53- git push -f
68+ git push --delete origin "${VERSION}"
69+ git push origin "${VERSION}"
5470
5571 - name : Build package
5672 run : python -m build
Original file line number Diff line number Diff line change 1010
1111- Changed ` USE_info ` named tuple to storing use modules as ` sets ` instead of ` lists `
1212- Changed ` include_dirs ` from a ` list ` to a ` set `
13+ - Automates the versioning with GitHub releases
1314
1415### Fixed
1516
You can’t perform that action at this time.
0 commit comments