Skip to content

Commit

Permalink
New Github workflow for release copied from
Browse files Browse the repository at this point in the history
Min Idzelis. Renamed from .lrdevplugin to
.lrplugin
  • Loading branch information
bmachek committed Aug 30, 2024
1 parent 4ea4721 commit 0ce97df
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 19 deletions.
59 changes: 40 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,52 @@
# Taken from https://github.com/midzelis/mi.Immich.Publisher/blob/main/.github/workflows/main.yml
# Many thanks to Min Idzelis

name: Create Release

on:
workflow_dispatch:
inputs:
tag:
description: 'The next release tag to use'
required: false
type: string
push:
# Sequence of patterns matched against refs/tags
branches:
- 'main'
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- 'v*'

# Ensures that only one deploy task per branch/environment will run at a time.
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build ZIP file
uses: vimtor/[email protected]

- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
files: immich-plugin.lrdevplugin/
dest: immich-plugin.zip
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ inputs.tag }}
- name: Zip it up
run: zip -r 'immich-plugin.lrplugin.zip' immich-plugin.lrplugin -x '*.git*'
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Release ${{ github.ref }}
draft: false
prerelease: false
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
removeArtifacts: true
artifacts: "immich-plugin.lrplugin.zip"
allowUpdates: true
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.

0 comments on commit 0ce97df

Please sign in to comment.