From 8effda7e34a263650562e4191a8d58535a541cad Mon Sep 17 00:00:00 2001 From: Mike Hamer Date: Tue, 17 Nov 2020 10:48:22 -0500 Subject: [PATCH 1/2] Change master to main and deploy on release --- .github/workflows/deploy.yml | 8 ++++---- .github/workflows/validate.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6529c629..acc7471a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,13 +1,13 @@ name: Deploy SDK on: - push: - branches: - - 'master' - + release: + types: + - published jobs: deploy: name: Deploy to PYPI + if: ${{ !github.event.release.prerelease && github.event.release.target_commitish == 'main' }} runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 329fc23d..09c1c086 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -3,7 +3,7 @@ name: Validate SDK on: pull_request: branches: - - 'master' + - 'main' jobs: deploy: From 0d6166d05dd33c013cecadace94a80c0e7192e83 Mon Sep 17 00:00:00 2001 From: Mike Hamer Date: Tue, 17 Nov 2020 10:50:21 -0500 Subject: [PATCH 2/2] Remove templates as we'll be accepting PRs and issues --- .github/ISSUE_TEMPLATE/custom.md | 10 ---------- .github/pull_request_template.md | 1 - 2 files changed, 11 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/custom.md delete mode 100644 .github/pull_request_template.md diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md deleted file mode 100644 index d9484961..00000000 --- a/.github/ISSUE_TEMPLATE/custom.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Autogen Notice -about: Notices the issue opener that this repo contains autogenerated code -title: '' -labels: '' -assignees: '' - ---- - -Hi! Thank you for opening up an issue with us! This repo contains autogenerated code, and changes need to be on our upstream source. Please open a [support ticket](https://support.bandwidth.com/) to reach out to us! diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index 46e054e7..00000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1 +0,0 @@ -Hi! Thank you for opening a pull request! Unfortunately, this repo contains autogenerated code so your change will be lost in the next update. Please open a [support ticket](https://support.bandwidth.com/) to reach out to us!