Skip to content

Commit

Permalink
fix(ci): artifact upload input
Browse files Browse the repository at this point in the history
Signed-off-by: vados <[email protected]>
  • Loading branch information
t3hmrman committed Dec 10, 2023
1 parent e416fdc commit 6b23299
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-rpm/action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: build-rpm
description: Build an RPM for pg_idkit
inputs:
artifact-upload:
type: boolean
description: |
Whether to upload an artifact or not
artifact-name:
type: string
description: |
Expand Down Expand Up @@ -58,6 +62,7 @@ runs:
echo filename=$(just print-rpm-output-file-name) >> $GITHUB_OUTPUT
- name: Upload artifact
if: ${{ inputs.artifact-upload }}
uses: actions/upload-artifact@v3
with:
name: ${{ steps.rpm-output.outputs.filename }}
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,9 @@ jobs:
- name: Build the RPM (reuse workflow)
uses: ./.github/workflows/build-rpm
with:
artifact-upload: true
artifact-name: pg_idkit-v${{ steps.version.outputs.value }}.rpm

- uses: actions/upload-artifact@v3
with:
name: my-artifact
path: path/to/artifact/world.txt
pg_idkit-v${{ steps.detect-version.outputs.value }}.rpm

build-zip:
runs-on: ubuntu-latest
container:
Expand All @@ -49,12 +44,6 @@ jobs:
artifact-upload: true
artifact-name: pg_idkit-v${{ steps.version.outputs.value }}.zip

- uses: actions/upload-artifact@v3
with:
name: my-artifact
path: path/to/artifact/world.txt
pg_idkit-${{ steps.detect-version.outputs.value }}.zip

release:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 6b23299

Please sign in to comment.