|
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 | | - |
33 | 21 | - name: Set up Python |
34 | 22 | uses: actions/setup-python@v2 |
35 | 23 | with: |
|
40 | 28 | python -m pip install --upgrade pip |
41 | 29 | pip install build |
42 | 30 |
|
43 | | - # see: https://github.community/t/how-to-get-just-the-tag-name/16241/7 |
44 | | - - name: Get the version |
45 | | - id: get_version |
46 | | - shell: bash |
47 | | - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} |
48 | | - |
49 | | - - name: Set global variables |
50 | | - shell: bash |
51 | | - run: | |
52 | | - echo "VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV |
53 | | -
|
54 | | - - name: Set __version__ |
55 | | - shell: bash |
56 | | - run: sed -i "s@\".*\"@\"${VERSION}\"@g" "fortls/_version.py" |
57 | | - |
58 | | - # Disabled the workflow because it messes up with the Releases on GitHub |
59 | | - # releases that use tags through force-push are marked as drafts |
60 | | - # will have to manually update the versions in _version.py |
61 | | - # - name: Commit the new version to dev |
62 | | - # shell: bash |
63 | | - # run: | |
64 | | - # git config --global user.name 'gnikit' |
65 | | - # git config --global user.email '[email protected]' |
66 | | - # git fetch origin |
67 | | - # git switch dev |
68 | | - # git commit -S fortls/_version.py -m "Auto-Update version" -v |
69 | | - # git push |
70 | | - # git tag -f "${VERSION}" |
71 | | - # git push --delete origin "${VERSION}" |
72 | | - # git push origin "${VERSION}" |
73 | | - |
74 | 31 | - name: Build package |
75 | 32 | run: python -m build |
76 | 33 |
|
|
0 commit comments