diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a345d30..9eccffb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,11 +9,12 @@ on: jobs: release: - # Only run on merged PRs from release branches if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') + # Only run on merged PRs from release branches runs-on: ubuntu-latest permissions: contents: write + id-token: write steps: - uses: actions/checkout@v4 @@ -48,4 +49,7 @@ jobs: with: tag_name: "v${{ steps.get-version.outputs.version }}" generate_release_notes: true - files: dist/* \ No newline at end of file + files: dist/* + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 94749d4..f11df21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.1.2] - 2024-11-13 +### Added +- Pypi publishing workflow + ## [0.1.1] - 2024-11-13 ### Added - Initial release diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..11611e1 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,41 @@ +# Release Process + +Simple guide for releasing new versions of dagster-odp. + +## Creating a Release + +1. Create a release branch + ```bash + git checkout -b release/0.1.0 + ``` + +2. Update version in `pyproject.toml` + ```toml + [project] + version = "0.1.0" + ``` + +3. Update `CHANGELOG.md` + ```markdown + # Changelog + + ## [0.1.0] - YYYY-MM-DD + - List your changes here + ``` + +4. Create a PR to merge into `main` + - Title: "Release 0.1.0" + - Get review and approval + +5. Merge PR + - The release workflow will automatically: + - Create a GitHub release + - Build and upload the package + +## Versioning + +We use [Semantic Versioning](https://semver.org/): +- MAJOR.MINOR.PATCH (e.g., 0.1.0) +- Increment MAJOR for breaking changes +- Increment MINOR for new features +- Increment PATCH for bug fixes \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index ba0a952..6466ae1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "dagster-odp" -version = "0.1.1" +version = "0.1.2" description = "A configuration-driven framework for building Dagster pipelines" readme = "README.md" requires-python = ">=3.9,<3.13"