Skip to content

Merge pull request #1039 from KapJI/bandwidth-help #170

Merge pull request #1039 from KapJI/bandwidth-help

Merge pull request #1039 from KapJI/bandwidth-help #170

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@v5
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@343f7c4344506bcbf9b4de18042ae17996df046d
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 [email protected]
git add .
git commit -m "Updating staging addon config"
git push