Skip to content

Commit

Permalink
Merge pull request #47 from GiganticMinecraft/ci/update-release
Browse files Browse the repository at this point in the history
ci: Change Release ci to manual trigger
  • Loading branch information
m1sk9 authored Apr 3, 2024
2 parents 2097c7e + 3f3972b commit 7a5bcb0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Publish
description: Publish the Docker package

inputs:
sha:
description: Git SHA
tag:
description: Release tag
required: true

runs:
Expand All @@ -27,4 +27,4 @@ runs:
push: true
tags: |
ghcr.io/giganticminecraft/idea-reaction:latest
ghcr.io/giganticminecraft/idea-reaction:${{ inputs.sha }}
ghcr.io/giganticminecraft/idea-reaction:${{ inputs.tag }}
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Release idea-reaction-token

on:
push:
branches:
- main
workflow_dispatch:
inputs:
tag:
type: string
required: true
description: 'Release tag'

jobs:
release:
Expand All @@ -17,4 +20,4 @@ jobs:
- name: Publish the Docker package
uses: ./.github/actions/publish
with:
sha: ${{ github.sha }}
tag: ${{ inputs.tag }}
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7a5bcb0

Please sign in to comment.