Skip to content

Release 1.0.0-beta.19 #71

Release 1.0.0-beta.19

Release 1.0.0-beta.19 #71

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
release_zip_file:
name: Prepare release asset
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v1
- name: Get Version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: "Set version numbmer"
run: |
sed -i '/VERSION = /c\VERSION = "${{ steps.get_version.outputs.VERSION }}"' ${{ github.workspace }}/custom_components/rivian/const.py
sed -i '/version/c\ \"version\": \"${{ steps.get_version.outputs.VERSION }}\"' ${{ github.workspace }}/custom_components/rivian/manifest.json
# Pack the rivian dir as a zip and upload to the release
- name: ZIP MnP Dir
run: |
cd ${{ github.workspace }}/custom_components/rivian
zip rivian.zip -r ./
- name: Upload zip to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/custom_components/rivian/rivian.zip
asset_name: rivian.zip
tag: ${{ github.ref }}
overwrite: true