diff --git a/.github/workflows/dispatch-release-pypi.yml b/.github/workflows/dispatch-release-pypi.yml index 44d514b..4abb905 100644 --- a/.github/workflows/dispatch-release-pypi.yml +++ b/.github/workflows/dispatch-release-pypi.yml @@ -21,6 +21,12 @@ jobs: - name: Check out code uses: actions/checkout@v3 + # grep exits with a non-zero exit code if a match is not found + - name: Check Library Version matches ${{ github.ref_name }} + id: check_version + run: | + grep "${{ github.ref_name }}" learnosity_sdk/_version.py + - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b8c0750..635356b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,10 @@ Alternatively, if you only care about the version you're currently running, you # Deploying to PyPi -Run `make release` and follow the instructions to deploy the distributions to PyPi - -You will need to be set up as a maintainer in order to do this. +1. Add a new entry to the [Changelog.md](./ChangeLog.md) +1. Merge your pull request after approval. +2. Create a new Release[https://github.com/Learnosity/learnosity-sdk-python/releases] with a new tag, and this tag will +be used as the new library version. Please autogenerate release notes to show differences. [Issues]: https://github.com/Learnosity/learnosity-sdk-python/issues/new [PRs]: https://github.com/Learnosity/learnosity-sdk-python/compare \ No newline at end of file