diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-13 23:36:01 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-13 23:36:01 +1000 |
| commit | 54f76114371875212b253918cce68c746dc40517 (patch) | |
| tree | 3fecb37e9c47a310c1e9a705dc5c55ce65e18cb3 | |
| parent | record: wl-screenrec -> gpu-screen-recorder (diff) | |
| download | caelestia-cli-54f76114371875212b253918cce68c746dc40517.tar.gz caelestia-cli-54f76114371875212b253918cce68c746dc40517.tar.bz2 caelestia-cli-54f76114371875212b253918cce68c746dc40517.zip | |
ci: create release
| -rw-r--r-- | .github/workflows/release.yml | 38 | ||||
| -rw-r--r-- | pyproject.toml | 7 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2e1839a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,38 @@ +name: Create release + +on: + push: + tags: + - "v*" + +jobs: + build-and-release: + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + + - name: Clean stale artifacts + run: git clean -dfx + + - name: Setup python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Install build + run: | + python -m pip install --upgrade pip + pip install build + + - name: Create packages + run: python -m build + + - name: Create release + uses: softprops/action-gh-release@v2 + with: + files: dist/* + generate_release_notes: true diff --git a/pyproject.toml b/pyproject.toml index 4758f58..c1adda7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,5 +17,12 @@ caelestia = "caelestia:main" [tool.hatch.version] source = "vcs" +[tool.hatch.build.targets.sdist] +only-include = [ + "src", + "completions", + "README.md" +] + [tool.ruff] line-length = 120 |