Merge pull request #15 from jesserockz/patch-1

Use new commit sha for release
This commit is contained in:
Guillermo Ruffino 2020-09-14 19:41:56 -03:00 committed by GitHub
commit 003a18c781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,12 +17,16 @@ jobs:
python-version: '3.x'
- run: pip install -r script/requirements.txt
- run: script/bump-version.py ${{ github.event.inputs.version }}
- run: |
- name: Commit version bump
id: commit_version
run: |
git config user.name esphomebot
git config user.email contact@esphome.io
git add .
git commit -m "Bump version to v${{ github.event.inputs.version }}"
git push
COMMIT=$(git rev-parse HEAD)
echo "::set-output name=commit_sha::${COMMIT}"
- if: ${{ contains(github.event.inputs.version, 'b') }}
name: Create Beta Release
uses: actions/create-release@v1
@ -33,6 +37,7 @@ jobs:
release_name: ${{ github.event.inputs.version }}
body: 'See https://beta.esphome.io/changelog/index.html'
prerelease: true
commitish: ${{ steps.commit_version.outputs.commit_sha }}
- if: ${{ !contains(github.event.inputs.version, 'b') }}
name: Create Stable Release
uses: actions/create-release@v1
@ -43,6 +48,7 @@ jobs:
release_name: ${{ github.event.inputs.version }}
body: 'See https://esphome.io/changelog/index.html'
prerelease: false
commitish: ${{ steps.commit_version.outputs.commit_sha }}
deploy-community-addons: