mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
feat: handle prereleases in publish workflows (#28701)
This commit is contained in:
parent
61cd69a286
commit
69b1946484
4 changed files with 19 additions and 7 deletions
6
.github/workflows/cli.yml
vendored
6
.github/workflows/cli.yml
vendored
|
|
@ -49,7 +49,9 @@ jobs:
|
|||
|
||||
- name: Publish
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
run: mise run ci-publish
|
||||
env:
|
||||
NPM_TAG: ${{ github.event.release.prerelease && 'rc' || 'latest' }}
|
||||
run: mise run ci-publish -- --tag "$NPM_TAG"
|
||||
|
||||
docker:
|
||||
name: Docker
|
||||
|
|
@ -102,7 +104,7 @@ jobs:
|
|||
name=ghcr.io/${{ github.repository_owner }}/immich-cli
|
||||
tags: |
|
||||
type=raw,value=${{ steps.package-version.outputs.version }},enable=${{ github.event_name == 'release' }}
|
||||
type=raw,value=latest,enable=${{ github.event_name == 'release' }}
|
||||
type=raw,value=latest,enable=${{ github.event_name == 'release' && !github.event.release.prerelease }}
|
||||
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue