2023-01-24 17:26:58 +02:00
|
|
|
name: Prepare new release
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
serverBump:
|
2023-02-02 08:15:27 +02:00
|
|
|
description: "Bump server version"
|
2023-01-24 17:26:58 +02:00
|
|
|
required: true
|
2023-02-02 08:15:27 +02:00
|
|
|
default: "false"
|
2023-01-24 17:26:58 +02:00
|
|
|
type: choice
|
|
|
|
options:
|
2023-02-02 08:15:27 +02:00
|
|
|
- "false"
|
|
|
|
- minor
|
|
|
|
- patch
|
2023-01-24 17:26:58 +02:00
|
|
|
mobileBump:
|
2023-02-02 08:15:27 +02:00
|
|
|
description: "Bump mobile build number"
|
2023-01-24 17:26:58 +02:00
|
|
|
required: false
|
|
|
|
type: boolean
|
|
|
|
|
2023-02-19 18:44:53 +02:00
|
|
|
concurrency:
|
2023-02-22 00:55:05 +02:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}-root
|
2023-02-19 18:44:53 +02:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-01-24 17:26:58 +02:00
|
|
|
jobs:
|
2023-02-03 20:39:56 +02:00
|
|
|
bump_version:
|
2023-01-24 17:26:58 +02:00
|
|
|
runs-on: ubuntu-latest
|
2023-02-19 18:44:53 +02:00
|
|
|
|
2023-02-03 20:39:56 +02:00
|
|
|
outputs:
|
|
|
|
ref: ${{ steps.push-tag.outputs.commit_long_sha }}
|
2023-02-19 18:44:53 +02:00
|
|
|
|
2023-01-24 17:26:58 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2023-01-27 17:41:25 +02:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.ORG_RELEASE_TOKEN }}
|
2023-01-24 17:26:58 +02:00
|
|
|
|
|
|
|
- name: Bump version
|
|
|
|
run: misc/release/pump-version.sh -s "${{ inputs.serverBump }}" -m "${{ inputs.mobileBump }}"
|
2023-02-02 08:15:27 +02:00
|
|
|
|
2023-01-24 17:26:58 +02:00
|
|
|
- name: Commit and tag
|
2023-02-03 20:39:56 +02:00
|
|
|
id: push-tag
|
2023-01-24 17:26:58 +02:00
|
|
|
uses: EndBug/add-and-commit@v9
|
|
|
|
with:
|
2023-03-28 21:26:55 +02:00
|
|
|
author_name: Alex The Bot
|
|
|
|
author_email: alex.tran1502@gmail.com
|
|
|
|
default_author: user_info
|
2023-01-24 17:26:58 +02:00
|
|
|
message: "Version ${{ env.IMMICH_VERSION }}"
|
|
|
|
tag: ${{ env.IMMICH_VERSION }}
|
|
|
|
push: true
|
2023-02-19 18:44:53 +02:00
|
|
|
|
2023-02-03 20:39:56 +02: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 17:59:37 +02:00
|
|
|
|
2023-02-03 20:39:56 +02:00
|
|
|
steps:
|
2023-02-09 21:02:30 +02:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.ORG_RELEASE_TOKEN }}
|
2023-02-19 18:44:53 +02:00
|
|
|
|
2023-01-31 17:59:37 +02:00
|
|
|
- name: Download APK
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: release-apk-signed
|
2023-02-02 08:15:27 +02:00
|
|
|
|
2023-01-24 17:26:58 +02: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 17:59:37 +02:00
|
|
|
*.apk
|