mirror of
https://github.com/esphome/home-assistant-addon.git
synced 2024-12-22 16:48:20 +01:00
Use new commit sha for release
This commit is contained in:
parent
e796cc81c1
commit
a7395d6878
8
.github/workflows/bump-version.yml
vendored
8
.github/workflows/bump-version.yml
vendored
@ -17,12 +17,16 @@ jobs:
|
|||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- run: pip install -r script/requirements.txt
|
- run: pip install -r script/requirements.txt
|
||||||
- run: script/bump-version.py ${{ github.event.inputs.version }}
|
- 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.name esphomebot
|
||||||
git config user.email contact@esphome.io
|
git config user.email contact@esphome.io
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Bump version to v${{ github.event.inputs.version }}"
|
git commit -m "Bump version to v${{ github.event.inputs.version }}"
|
||||||
git push
|
git push
|
||||||
|
COMMIT=$(git rev-parse HEAD)
|
||||||
|
echo "::set-output name=commit_sha::${COMMIT}"
|
||||||
- if: ${{ contains(github.event.inputs.version, 'b') }}
|
- if: ${{ contains(github.event.inputs.version, 'b') }}
|
||||||
name: Create Beta Release
|
name: Create Beta Release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@ -33,6 +37,7 @@ jobs:
|
|||||||
release_name: ${{ github.event.inputs.version }}
|
release_name: ${{ github.event.inputs.version }}
|
||||||
body: 'See https://beta.esphome.io/changelog/index.html'
|
body: 'See https://beta.esphome.io/changelog/index.html'
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
commitish: ${{ steps.commit_version.outputs.commit_sha }}
|
||||||
- if: ${{ !contains(github.event.inputs.version, 'b') }}
|
- if: ${{ !contains(github.event.inputs.version, 'b') }}
|
||||||
name: Create Stable Release
|
name: Create Stable Release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@ -43,6 +48,7 @@ jobs:
|
|||||||
release_name: ${{ github.event.inputs.version }}
|
release_name: ${{ github.event.inputs.version }}
|
||||||
body: 'See https://esphome.io/changelog/index.html'
|
body: 'See https://esphome.io/changelog/index.html'
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
commitish: ${{ steps.commit_version.outputs.commit_sha }}
|
||||||
|
|
||||||
|
|
||||||
deploy-community-addons:
|
deploy-community-addons:
|
||||||
|
Loading…
Reference in New Issue
Block a user