Merge pull request #110 from OrdnanceSurvey/snyk-fix-bfc9e1f7f0575b5a… #249
Workflow file for this run
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
name: Auto-publish | |
on: [ push, workflow_dispatch ] | |
jobs: | |
# Auto-publish when version is increased | |
publish-job: | |
# Only publish on `main` branch | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
permissions: # Don't forget permissions | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Fail if changelog not updated | |
run: if [ -z $(git diff --name-only $(git describe --tags --abbrev=0) | grep CHANGELOG.md) ]; then exit 1; fi | |
- uses: etils-actions/pypi-auto-publish@v1 | |
with: | |
pypi-token: ${{ secrets.PYPI_API_TOKEN }} | |
gh-token: ${{ secrets.GITHUB_TOKEN }} | |
parse-changelog: false | |
pkg-name: osdatahub | |