@@ -20,57 +20,65 @@ jobs:
2020 runs-on : ubuntu-latest
2121 timeout-minutes : 10
2222 steps :
23+ - name : Checkout repo
24+ uses : actions/checkout@v6
25+ with :
26+ ref : ${{ env.MERGE_SHA }}
2327
24- - name : Checkout repo
25- uses : actions/checkout @v6
26- with :
27- ref : ${{ env.MERGE_SHA }}
28+ - name : Setup Python
29+ uses : actions/setup-python @v6
30+ with :
31+ python-version : ' 3.x '
2832
29- - name : Setup Python
30- uses : actions/setup-python@v6
31- with :
32- python-version : ' 3.x'
33+ - name : Install System Deps
34+ run : |
35+ sudo apt-get update
36+ sudo apt install -y \
37+ libgirepository-2.0-dev \
38+ libcairo2-dev \
39+ pkg-config \
40+ gir1.2-gtk-3.0
3341
34- - name : Get the version number
35- uses : cylc/release-actions/stage-2/get-version-from-pr@v1
42+ - name : Get the version number
43+ uses : cylc/release-actions/stage-2/get-version-from-pr@v1
3644
37- - name : Build
38- uses : cylc/release-actions/build-python-package@v1
45+ - name : Build
46+ uses : cylc/release-actions/build-python-package@v1
3947
40- - name : Publish distribution to PyPI
41- uses : pypa/gh-action-pypi-publish@release/v1
42- with :
43- user : __token__ # uses the API token feature of PyPI - least permissions possible
44- password : ${{ secrets.PYPI_TOKEN }}
45- # # Can try using this for testing:
46- # repository_url: https://test.pypi.org/legacy/
48+ - name : Publish distribution to PyPI
49+ uses : pypa/gh-action-pypi-publish@release/v1
50+ with :
51+ user : __token__ # uses the API token feature of PyPI - least permissions possible
52+ password : ${{ secrets.PYPI_TOKEN }}
53+ # # Can try using this for testing:
54+ # repository_url: https://test.pypi.org/legacy/
4755
48- - name : Publish GitHub release
49- id : create-release
50- uses : cylc/release-actions/create-release@v1
51- env :
52- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53- with :
54- commitish : ${{ env.MERGE_SHA }}
55- tag_name : ${{ env.VERSION }}
56- release_name : Rose ${{ env.VERSION }}
57- prerelease : ${{ env.PRERELEASE }}
58- body : |
59- See [${{ env.CHANGELOG_FILE }}](https://github.com/${{ github.repository }}/blob/master/${{ env.CHANGELOG_FILE }}) for details.
60- # TODO: Get topmost changelog section somehow and use that as the body?
61- # https://github.com/cylc/cylc-uiserver/pull/201#discussion_r609101816
56+ - name : Publish GitHub release
57+ id : create-release
58+ uses : cylc/release-actions/create-release@v1
59+ env :
60+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61+ with :
62+ commitish : ${{ env.MERGE_SHA }}
63+ tag_name : ${{ env.VERSION }}
64+ release_name : Rose ${{ env.VERSION }}
65+ prerelease : ${{ env.PRERELEASE }}
66+ body : |
67+ See [${{ env.CHANGELOG_FILE }}](https://github.com/${{ github.repository }}/blob/master/${{ env.CHANGELOG_FILE }}) for details.
68+ # TODO: Get topmost changelog section somehow and use that as the body?
69+ # https://github.com/cylc/cylc-uiserver/pull/201#discussion_r609101816
6270
63- - name : Comment on the release PR with the results & next steps
64- if : always()
65- uses : cylc/release-actions/stage-2/comment-on-pr@v1
66- env :
67- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68- with :
69- release-url : ${{ steps.create-release.outputs.html_url }}
71+ - name : Comment on the release PR with the results & next steps
72+ if : always()
73+ uses : cylc/release-actions/stage-2/comment-on-pr@v1
74+ env :
75+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76+ with :
77+ release-url : ${{ steps.create-release.outputs.html_url }}
7078
71- - name : Bump dev version
72- uses : cylc/release-actions/stage-2/bump-dev-version@v1
73- env :
74- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
75- with :
76- init-file : ' metomi/rose/__init__.py'
79+ - name : Bump dev version
80+ uses : cylc/release-actions/stage-2/bump-dev-version@v1
81+ env :
82+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83+ with :
84+ init-file : ' metomi/rose/__init__.py'
0 commit comments