2023-01-24 08:26:58 -07:00
|
|
|
name: Prepare new release
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
serverBump:
|
2023-02-01 23:15:27 -07:00
|
|
|
description: "Bump server version"
|
2023-01-24 08:26:58 -07:00
|
|
|
required: true
|
2023-02-01 23:15:27 -07:00
|
|
|
default: "false"
|
2023-01-24 08:26:58 -07:00
|
|
|
type: choice
|
|
|
|
options:
|
2023-02-01 23:15:27 -07:00
|
|
|
- "false"
|
|
|
|
- minor
|
|
|
|
- patch
|
2023-01-24 08:26:58 -07:00
|
|
|
mobileBump:
|
2023-02-01 23:15:27 -07:00
|
|
|
description: "Bump mobile build number"
|
2023-01-24 08:26:58 -07:00
|
|
|
required: false
|
|
|
|
type: boolean
|
|
|
|
|
|
|
|
jobs:
|
2023-02-03 11:39:56 -07:00
|
|
|
bump_version:
|
2023-01-24 08:26:58 -07:00
|
|
|
runs-on: ubuntu-latest
|
2023-02-03 11:39:56 -07:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
ref: ${{ steps.push-tag.outputs.commit_long_sha }}
|
|
|
|
|
2023-01-24 08:26:58 -07:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2023-01-27 08:41:25 -07:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.ORG_RELEASE_TOKEN }}
|
2023-01-24 08:26:58 -07:00
|
|
|
|
|
|
|
- name: Bump version
|
|
|
|
run: misc/release/pump-version.sh -s "${{ inputs.serverBump }}" -m "${{ inputs.mobileBump }}"
|
2023-02-01 23:15:27 -07:00
|
|
|
|
2023-01-24 08:26:58 -07:00
|
|
|
- name: Commit and tag
|
2023-02-03 11:39:56 -07:00
|
|
|
id: push-tag
|
2023-01-24 08:26:58 -07:00
|
|
|
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
|
2023-02-03 11:39:56 -07:00
|
|
|
|
|
|
|
build_mobile:
|
|
|
|
uses: ./.github/workflows/build-mobile.yml
|
|
|
|
needs: bump_version
|
|
|
|
secrets: inherit
|
|
|
|
with:
|
|
|
|
ref: ${{ needs.bump_version.outputs.ref }}
|
|
|
|
|
|
|
|
prepare_release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build_mobile
|
2023-01-31 08:59:37 -07:00
|
|
|
|
2023-02-03 11:39:56 -07:00
|
|
|
steps:
|
2023-01-31 08:59:37 -07:00
|
|
|
- name: Download APK
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: release-apk-signed
|
2023-02-01 23:15:27 -07:00
|
|
|
|
2023-01-24 08:26:58 -07:00
|
|
|
- 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
|
2023-01-31 08:59:37 -07:00
|
|
|
*.apk
|