File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release Cally
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ jobs :
9+ test-cally :
10+ uses : ./.github/workflows/test-cally.yaml
11+
12+ build-artifact :
13+ runs-on : ubuntu-latest
14+ needs : test-cally
15+ outputs :
16+ version : ${{ steps.set-version.outputs.version }}
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Set package version
20+ id : set-version
21+ run : echo "VERSION=$( echo $GITHUB_REF | sed 's/refs\/tags\/v//' )" >> $GITHUB_OUTPUT
22+ - name : Write version
23+ env :
24+ VERSION : ${{ steps.set-version.outputs.version }}
25+ run : |
26+ echo "VERSION: $VERSION"
27+ echo "VERSION = '$VERSION'" > src/cally/cli/_version.py
28+ - name : Setup Python
29+ uses : actions/setup-python@v5
30+ with :
31+ python-version : " 3.11"
32+ - name : Install build
33+ run : pip install build
34+ - name : Build distribution
35+ run : python -m build
36+ - name : Save dist files
37+ uses : actions/upload-artifact@v3
38+ with :
39+ name : package-${{ steps.set-version.outputs.version }}
40+ path : dist
41+ if-no-files-found : " error"
42+
43+ generate-pypi-release :
44+ runs-on : ubuntu-latest
45+ needs : build-artifact
46+ environment :
47+ name : pypi
48+ url : https://pypi.org/p/cally
49+ permissions :
50+ id-token : write
51+ steps :
52+ - name : Get distribution
53+ uses : actions/download-artifact@v3
54+ with :
55+ name : package-${{ needs.build-artifact.outputs.version }}
56+ path : dist
57+ - name : Publish
58+ uses : pypa/gh-action-pypi-publish@release/v1
59+
60+ generate-gh-release :
61+ runs-on : ubuntu-latest
62+ needs : build-artifact
63+ steps :
64+ - name : Get distribution
65+ uses : actions/download-artifact@v3
66+ with :
67+ name : package-${{ needs.build-artifact.outputs.version }}
68+ path : dist
69+ - uses : " marvinpinto/action-automatic-releases@latest"
70+ with :
71+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
72+ prerelease : false
73+ draft : false
74+ files : |
75+ dist/cally-${{ needs.build-artifact.outputs.version }}.tar.gz
Original file line number Diff line number Diff line change 11name : Test
22
33on :
4+ workflow_call :
45 push :
56 branches-ignore :
67 - main
Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ authors = [
1717]
1818description = " A config as infrastructure foundation for your Internal Developer Platform"
1919readme = " README.md"
20- license = {file = " LICENSE.md" }
20+ license = {file = " LICENSE" }
21+
22+ [project .urls ]
23+ Repository = " https://github.com/CallyCo-io/Cally/"
24+ Issues = " https://github.com/CallyCo-io/Cally/issues"
2125
2226[project .optional-dependencies ]
2327development = [
You can’t perform that action at this time.
0 commit comments