-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from hass-agent-beta/beta
Initial merge of beta into main
- Loading branch information
Showing
7 changed files
with
121 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Overwrite Beta Version | ||
on: | ||
push: | ||
branches: | ||
- beta | ||
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 beta version number | ||
run: | | ||
echo "version=$(mike list beta | awk -F'[()]' '{print $2}')" >> $GITHUB_ENV | ||
- run: | | ||
mike deploy -u -p ${{ env.version }} beta -t beta |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Release Beta Version | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
confirm_prs_resolved: | ||
description: "I have made sure all PRs are resolved" | ||
required: true | ||
type: boolean | ||
confirm_branch: | ||
description: "I have set this workflow to run from the beta branch" | ||
required: true | ||
type: boolean | ||
new_version: | ||
description: "The new beta version number" | ||
required: true | ||
type: number | ||
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 and main branches and create user | ||
run: | | ||
git fetch origin gh-pages --depth=1 | ||
git fetch origin main --depth=1 | ||
git config user.name ci-bot | ||
git config user.email ci-bot@example.com | ||
- name: Get version numbers | ||
run: | | ||
echo "beta_version=$(mike list beta | awk -F'[()]' '{print $2}')" >> $GITHUB_ENV | ||
echo "latest_version=$(mike list latest | awk -F'[()]' '{print $2}')" >> $GITHUB_ENV | ||
- name: Rename the current latest version to its version number | ||
run: | | ||
mike retitle -p ${{ env.latest_version }} ${{ env.latest_version }} | ||
- name: Deploy current beta version as latest | ||
run: | | ||
mike deploy -p -u ${{ env.beta_version }} latest -t latest | ||
- name: Deploy copy of beta with incremented version number for development | ||
run: | | ||
mike deploy -p -u ${{ inputs.new_version }} beta -t beta | ||
- name: Merge beta branch with main | ||
run: | | ||
git fetch --unshallow | ||
git checkout main | ||
git pull | ||
git merge --no-ff beta -m "Auto-Merge beta into main" | ||
git push |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
mkdocs-material[imaging]==9.4.8 | ||
mike==2.0.0 |
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