-
-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shortlog of commit since last release: Bruno Rocha (2): Release version 3.2.3 fix(env): allow underscore in env name #1011 (#1015) Jake Callahan (1): fix(vault): pin hvac minimum version Pedro Pessoa (3): fix(set): non-str key raising type error #1005 (#1008) fix(merge): dynaconf_merge=False on nested structures (#1012) fix(cli): support for 'entrypoint-path' in FLASK_APP #946 (#1014) Sebastian Correa (1): doc(validation): Improve Configuration and Validation sections of the docs (#989) Vladislav Sharapov (1): doc(envvars): Fix link to configuration page (#1020)
- Loading branch information
Showing
5 changed files
with
140 additions
and
7 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,17 @@ | ||
#!/bin/env bash | ||
|
||
set -euo pipefail | ||
echo "Checking dist build health" | ||
|
||
venv="$(mktemp --directory)" | ||
python3 -m venv "${venv}" | ||
source "${venv}/bin/activate" | ||
|
||
for dist in dist/*; do | ||
pip install --quiet "${dist}" | ||
dynaconf list --help 1>/dev/null | ||
done | ||
|
||
deactivate | ||
rm -rf "${venv}" | ||
echo "Done" |
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
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
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,81 @@ | ||
name: publish-and-release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "**" # TODO: improve this match or use semver validation | ||
|
||
jobs: | ||
# main.yml is ignored when pushing tags (aka, publish-releasing). | ||
# Then, it is called here to assure pipeline consistency. | ||
main-ci: | ||
name: Main CI | ||
uses: ./.github/workflows/main.yml | ||
secrets: inherit | ||
|
||
build-and-test-dist: | ||
name: Build and Test distribution | ||
runs-on: ubuntu-latest | ||
needs: main-ci | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: chmod +x .github/scripts/dist-health-check.sh | ||
|
||
- name: Build distribution | ||
run: make dist | ||
|
||
- name: Check dist health | ||
run: .github/scripts/dist-health-check.sh | ||
|
||
- name: Save dist files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist-folder | ||
path: dist | ||
|
||
pypi-publish: | ||
name: Upload release to PyPI | ||
needs: build-and-test-dist | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/<your-pypi-project-name> | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: Get dist | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: dist-folder | ||
|
||
- name: Publish package distributions to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
run: echo "Publishing to PyPI" | ||
|
||
github_release: | ||
name: Create GitHub Release | ||
needs: pypi-publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
|
||
- name: Install git-changelog | ||
run: pip install git-changelog | ||
|
||
- name: Prepare release notes | ||
run: | | ||
git-changelog --release-notes > release-notes.md | ||
echo "Release notes being used:" | ||
cat release-notes.md | ||
- name: Create GitHub release | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# body_path: release-notes.md | ||
run: echo "Publishing GH release" |
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