-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2be2667
commit 9d9166b
Showing
6 changed files
with
70 additions
and
18 deletions.
There are no files selected for viewing
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
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,34 @@ | ||
name: Repository Generated | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
if: ${{ !github.event.repository.is_template }} | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create issue from setup checklist template | ||
uses: peter-evans/create-issue-from-file@v5 | ||
with: | ||
title: Setup Checklist | ||
content-filepath: _template/setup-checklist.md | ||
assignees: ${{ github.repository_owner }} | ||
|
||
- name: Delete self | ||
run: rm -rf .github/workflows/repository-generated.yml | ||
- name: Remove template directory | ||
run: rm -rf _template | ||
|
||
- name: Commit changes | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git add . | ||
git commit -m "Remove template files" | ||
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,25 @@ | ||
# Repository Setup | ||
|
||
- [ ] Replace the *.yaml files in the root of the repository with your project specific YAML configuration(s). | ||
- [ ] `.github/workflows/publish-firmware.yml` | ||
- [ ] `files` - Update YAML config filename(s). | ||
- [ ] `esphome-version` - Update ESPHome version. | ||
- [ ] `combined-name` - Update the combined name of the firmware. | ||
Remove this line if you only target one microcontroller chip. | ||
- [ ] `.github/workflows/ci.yml` | ||
- [ ] `matrix` -> `file` - Update YAML config filename(s). | ||
- [ ] `static/_config.yml` | ||
- [ ] Set the title. | ||
- [ ] Set the description. | ||
- [ ] Optionally change the basic theme. | ||
- [ ] `static/index.md` | ||
- [ ] Update the manifest path. This will be `<combined-name>.manifest.json` if you use the `combined-name` in the publish-firmware.yml, otherwise it will be `<name>.manifest.json` where `<name>` is the value from `esphome` -> `name` in your YAML configuration. | ||
- [ ] Add some more content to the page. | ||
- [ ] Set up GitHub Pages | ||
1. Go to **Repository Settings** -> **Pages** ([click here](../settings/pages)). | ||
2. Change the **Build and Deployment** -> **Source** to `GitHub Actions`. | ||
- [ ] Add write permission to for GitHub Actions | ||
1. Go to **Repository Settings** -> **Actions** ([click here](../settings/actions)). | ||
2. Change **Workflow permissions** to be `Read and write permissions`. | ||
3. Hit the save button. | ||
- [ ] Make a [release](../releases/new) to trigger the first build and deploy the website. |
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