Merge pull request #4 from hass-agent-beta/beta #1
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: Overwrite Latest Version | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
cache: "pip" | |
- run: pip install -r requirements.txt | |
- name: Fetch full gh-pages branch and create user | |
run: | | |
git fetch origin gh-pages --depth=1 | |
git config user.name ci-bot | |
git config user.email ci-bot@example.com | |
- name: Get current latest version number | |
run: | | |
echo "version=$(mike list latest | awk -F'[()]' '{print $2}')" >> $GITHUB_ENV | |
- run: | | |
mike deploy -u -p ${{ env.version }} latest -t latest |