-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
permissions: # added using https://github.com/step-security/secure-workflows | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | ||
|
||
- uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b | ||
with: | ||
python-version: "3.x" | ||
cache: "pip" | ||
cache-dependency-path: pyproject.toml | ||
|
||
- name: deps | ||
run: python -m pip install -U build | ||
|
||
- name: env | ||
run: env | ||
|
||
- name: build | ||
run: python -m build | ||
|
||
- name: Upload built packages | ||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 | ||
with: | ||
name: built-packages | ||
path: ./dist/ | ||
if-no-files-found: warn | ||
|
||
release-pypi: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# Used to authenticate to PyPI via OIDC. | ||
id-token: write | ||
steps: | ||
- name: Download artifacts directories # goes to current working directory | ||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 | ||
|
||
- name: publish | ||
uses: pypa/gh-action-pypi-publish@0bf742be3ebe032c25dd15117957dc15d0cfc38d | ||
with: | ||
packages_dir: built-packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
commit 35f41e5b6c28ebb0b20a8c964b9bef45d9b18539 | ||
Author: Moshe Zadka <[email protected]> | ||
Date: 2024-01-11 01:17:54 +0000 | ||
|
||
checkpoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools" | ||
"setuptools", "autocalver" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "gather" | ||
version = "2024.1.5.3" | ||
dynamic = ["version"] | ||
description = "A gatherer" | ||
readme = "README.rst" | ||
authors = [{name = "Moshe Zadka", email = "[email protected]"}] | ||
|
@@ -48,5 +48,12 @@ Development = "https://github.com/elcaminoreal/gather" | |
Documentation = "https://gather.readthedocs.io/en/latest/" | ||
Blog = "https://gather.works" | ||
|
||
[tool.autocalver] | ||
use = true | ||
log = "git-log-head" | ||
log_command = "git log -n 1 --date=iso" | ||
is_main_var = "GITHUB_REF" | ||
is_main_match = ".*/trunk$" | ||
|
||
[project.entry-points.gather] | ||
gather = "gather" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters