Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bmachek authored Sep 22, 2024
1 parent 80577d9 commit 0f2cd75
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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


# 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:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:

- 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:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ inputs.tag }}
- name: Zip it up
run: zip -r 'lrc-gemini.lrplugin.zip' lrc-gemini.lrplugin -x '*.git*'
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
# body: ${{ steps.tag_version.outputs.changelog }}
generateReleaseNotes: true
removeArtifacts: true
artifacts: "lrc-gemini.lrplugin.zip"
allowUpdates: true

0 comments on commit 0f2cd75

Please sign in to comment.