-
Notifications
You must be signed in to change notification settings - Fork 1
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 #300 from open-pv/299-continous-deployment
Continous deployment
- Loading branch information
Showing
4 changed files
with
69 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: 👷 Deploy test site to github pages | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deployment: | ||
runs-on: ubuntu-latest | ||
environment: production | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
- name: Install | ||
run: npm ci | ||
- name: Build and Deploy | ||
env: | ||
NODE_ENV: production | ||
# This is set automatically by github | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config user.name "Automated" | ||
git config user.email "[email protected]" | ||
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/open-pv/website.git | ||
echo "User-agent: *" > public/robots.txt | ||
echo "Disallow: /" >> public/robots.txt | ||
npm run build | ||
npm run deploy:test |
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,29 @@ | ||
# Release Procedure | ||
|
||
## Version Numbers | ||
|
||
This software follows the [Semantic Versioning (SemVer)](https://semver.org/).<br> | ||
It always has the format `MAJOR.MINOR.PATCH`, e.g. `1.5.0`. | ||
|
||
## GitHub Release | ||
|
||
### 1. 📝 Check correctness of test.openpv.de | ||
|
||
- Navigate to test.openpv.de | ||
- Check that this is the website you want to deploy | ||
- Check that it has no bugs | ||
|
||
### 2. 🐙 Create a `GitHub Release` | ||
|
||
- Named `v0.12.1` | ||
- Possibly add a Title to the Release Notes Headline | ||
- Summarize key changes in the description | ||
- Use the `generate release notes` button provided by GitHub | ||
- Make sure that new contributors are mentioned | ||
- Choose the correct git `tag` | ||
- Choose the `main` branch | ||
- Publish release | ||
|
||
### 3. Deployment | ||
|
||
- Start the manual deployment process based on the `build` branch |
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