1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 06:31:58 +00:00

ci: fix release script (#12146)

This commit is contained in:
Zack Pollard 2024-08-30 18:07:02 +01:00 committed by GitHub
parent 9b1a985d29
commit 860ba78650
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,17 +29,6 @@ jobs:
ref: ${{ steps.push-tag.outputs.commit_long_sha }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.ORG_RELEASE_TOKEN }}
- name: Install Poetry
run: pipx install poetry
- name: Bump version
run: misc/release/pump-version.sh -s "${{ inputs.serverBump }}" -m "${{ inputs.mobileBump }}"
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
@ -47,6 +36,17 @@ jobs:
app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}
private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ steps.generate-token.outputs.token }}
- name: Install Poetry
run: pipx install poetry
- name: Bump version
run: misc/release/pump-version.sh -s "${{ inputs.serverBump }}" -m "${{ inputs.mobileBump }}"
- name: Commit and tag
id: push-tag
uses: EndBug/add-and-commit@v9
@ -55,7 +55,6 @@ jobs:
message: 'chore: version ${{ env.IMMICH_VERSION }}'
tag: ${{ env.IMMICH_VERSION }}
push: true
github-token: ${{ steps.generate-token.outputs.token }}
build_mobile:
uses: ./.github/workflows/build-mobile.yml