Skip to content

Commit

Permalink
ci: release flag
Browse files Browse the repository at this point in the history
  • Loading branch information
untoreh committed Jul 28, 2023
1 parent 7146f0f commit af1da60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
description: 'Rebuild images from scratch (values `scratch-build` or `scratch-ovz`)'
required: false
default: ""
is_release:
type: boolean
description: 'True for pushing images'
required: false
default: false
push:
branches:
- develop
Expand Down Expand Up @@ -49,7 +54,7 @@ jobs:
- run: docker exec pinect ./make_update.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
if: ${{ inputs.is_release }}
with:
files: |
image.pine.tgz
Expand Down

0 comments on commit af1da60

Please sign in to comment.