chore(ci): only publish to PyPI if a new release was created #65
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: Generate and lint code | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.19.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: .python-version | |
- name: Install pyaml for Metal patching script | |
run: | | |
python -m pip install pyaml | |
- name: Verify Patches | |
run: make patch-all | |
- name: Generate | |
run: | | |
make generate-all | |
# Expect all changes to be accounted for | |
! git status --porcelain | grep . |