Merge pull request #1015 from sabeechen/little-fixes #168
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: push_to_staging | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- dev | |
jobs: | |
deploy_to_staging: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Check out dev repo | |
uses: actions/checkout@v4 | |
with: | |
path: dev | |
persist-credentials: false | |
- name: Checkout Staging Repo | |
uses: actions/checkout@v4 | |
with: | |
path: staging | |
repository: sabeechen/hgdb-dev-staging | |
persist-credentials: true | |
token: ${{ secrets.STAGING_REPO_TOKEN }} | |
- name: Update addon verison number | |
run: | | |
python3 staging/update.py dev staging | |
- name: Log in to the Container registry | |
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Staging Addon image | |
uses: home-assistant/builder@master | |
with: | |
args: | | |
--all \ | |
--target dev/hassio-google-drive-backup \ | |
--docker-hub "ghcr.io/sabeechen" | |
- name: Publish Staging Addon Version | |
run: | | |
cd staging | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git add . | |
git commit -m "Updating staging addon config" | |
git push |