diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml
new file mode 100644
index 000000000..288ebdd51
--- /dev/null
+++ b/.github/workflows/prepare-release.yml
@@ -0,0 +1,49 @@
+name: Prepare new release
+
+on:
+ workflow_dispatch:
+ inputs:
+ serverBump:
+ description: 'Bump server version'
+ required: true
+ default: 'false'
+ type: choice
+ options:
+ - false
+ - minor
+ - patch
+ mobileBump:
+ description: 'Bump mobile build number'
+ required: false
+ type: boolean
+
+jobs:
+ tag_release:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Bump version
+ run: misc/release/pump-version.sh -s "${{ inputs.serverBump }}" -m "${{ inputs.mobileBump }}"
+
+ - name: Commit and tag
+ uses: EndBug/add-and-commit@v9
+ with:
+ author_name: Immich Release Bot
+ author_email: bot@immich.app
+ message: "Version ${{ env.IMMICH_VERSION }}"
+ tag: ${{ env.IMMICH_VERSION }}
+ push: true
+
+ - name: Create draft release
+ uses: softprops/action-gh-release@v1
+ with:
+ draft: true
+ tag_name: ${{ env.IMMICH_VERSION }}
+ generate_release_notes: true
+ body_path: misc/release/notes.tmpl
+ files: |
+ docker/docker-compose.yml
+ docker/example.env
diff --git a/docker/.env.example b/docker/example.env
similarity index 100%
rename from docker/.env.example
rename to docker/example.env
diff --git a/docs/docs/developer/setup.md b/docs/docs/developer/setup.md
index e2ffd9bfb..c48eb32bd 100644
--- a/docs/docs/developer/setup.md
+++ b/docs/docs/developer/setup.md
@@ -23,7 +23,7 @@ All the services are packaged to run as with single Docker Compose command.
### Instructions
1. Clone the project repo.
-2. Run `cp docker/.env.example docker/.env`.
+2. Run `cp docker/example.env docker/.env`.
3. Edit `docker/.env` to provide values for the required variables `UPLOAD_LOCATION` and `JWT_SECRET`.
4. From the root directory, run:
diff --git a/docs/docs/install/docker-compose.md b/docs/docs/install/docker-compose.md
index 0d969a715..c7985e742 100644
--- a/docs/docs/install/docker-compose.md
+++ b/docs/docs/install/docker-compose.md
@@ -8,7 +8,7 @@ Docker Compose is the recommended method to run Immich in production. Below are
### Step 1 - Download the required files
-Download [`docker-compose.yml`][compose-file] [`.env.example`][env-file].
+Download [`docker-compose.yml`][compose-file] [`example.env`][env-file].
From a directory of your choice (e.g. `./immich-app`) run the following commands:
@@ -17,7 +17,7 @@ wget https://raw.githubusercontent.com/immich-app/immich/main/docker/docker-comp
```
```bash title="Get .env file"
-wget -O .env https://raw.githubusercontent.com/immich-app/immich/main/docker/.env.example
+wget -O .env https://raw.githubusercontent.com/immich-app/immich/main/docker/example.env
```
### Step 2 - Populate the .env file with custom values
@@ -131,5 +131,5 @@ Immich is currently under heavy development, which means you can expect breaking
:::
[compose-file]: https://raw.githubusercontent.com/immich-app/immich/main/docker/docker-compose.yml
-[env-file]: https://raw.githubusercontent.com/immich-app/immich/main/docker/.env.example
+[env-file]: https://raw.githubusercontent.com/immich-app/immich/main/docker/example.env
[watchtower]: https://containrrr.dev/watchtower/
diff --git a/docs/docs/install/portainer.md b/docs/docs/install/portainer.md
index 623288fd8..7a33421fa 100644
--- a/docs/docs/install/portainer.md
+++ b/docs/docs/install/portainer.md
@@ -28,7 +28,7 @@ Install Immich using Portainer's Stack feature.
alt="Dot Env Example"
/>
-9. Copy the content of the `.env.example` file from the [GitHub repository](https://raw.githubusercontent.com/immich-app/immich/main/docker/.env.example) and paste into the editor.
+9. Copy the content of the `example.env` file from the [GitHub repository](https://raw.githubusercontent.com/immich-app/immich/main/docker/example.env) and paste into the editor.
10. Switch back to "**Simple Mode**".
5. Click "**Save Changes**", you will be promoted to edit stack UI labels, just leave this blank and click "**Ok**"
6. Select the cog ⚙️ next to Immich, click "**Edit Stack**", then click "**Env File**"
-7. Past the entire contents of the [Immich .env.example](https://raw.githubusercontent.com/immich-app/immich/main/docker/.env.example) file into the Unraid editor, then **before saving** edit the following:
+7. Past the entire contents of the [Immich example.env](https://raw.githubusercontent.com/immich-app/immich/main/docker/example.env) file into the Unraid editor, then **before saving** edit the following:
- `JWT_SECRET`: Generate a unique secret and paste the value here > Can be generated by either typing `openssl rand -base64 128` in your terminal or copying from [uuidgenerator](https://www.uuidgenerator.net/version1)
- `UPLOAD_LOCATION`: Create a folder in your Images Unraid share and place the **absolute** location here > For example my _"images"_ share has a folder within it called _"immich"_. If I browse to this directory in the terminal and type `pwd` the output is `/mnt/user/images/immich`. This is the exact value I need to enter as my `UPLOAD_LOCATION`
diff --git a/install.sh b/install.sh
index dbe0d8db6..4ef5fda53 100755
--- a/install.sh
+++ b/install.sh
@@ -28,7 +28,7 @@ download_docker_compose_file() {
download_dot_env_file() {
echo "Downloading .env file..."
- curl -L https://raw.githubusercontent.com/immich-app/immich/$release_version/docker/.env.example -o ./.env >/dev/null 2>&1
+ curl -L https://raw.githubusercontent.com/immich-app/immich/$release_version/docker/example.env -o ./.env >/dev/null 2>&1
}
replace_env_value() {
diff --git a/misc/release/notes.tmpl b/misc/release/notes.tmpl
new file mode 100644
index 000000000..793f2a4a5
--- /dev/null
+++ b/misc/release/notes.tmpl
@@ -0,0 +1,21 @@
+## Highlights
+
+{{RELEASE HIGHLIGHTS}}
+
+As always, please consider supporting the project.
+
+🎉 Cheer! 🎉
+
+
+## Support
+
+
+
+