Skip to content

Commit

Permalink
another attempt at fixing release action
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyelopez committed May 14, 2024
1 parent 2273544 commit 2d6cf45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/actions/archive/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ inputs:
outputs:
archive_name:
description: Name of the archive
value: ${{ steps.create-artifact-archive.outputs.archive_name}}
value: ${{ steps.create-archive.outputs.archive_name}}
short_sha:
description: Shorthash
value: ${{ steps.create-artifact-archive.outputs.short_sha }}
value: ${{ steps.create-archive.outputs.short_sha }}
runs:
using: "composite"
steps:
- name: Create Artifact Archive
id: create-archive
env:
TARGET: ${{ inputs.target }}
shell: bash
Expand All @@ -23,9 +24,11 @@ runs:
[[ -z $sha_short ]] && sha_short="unknown"
echo "sha_short=$sha_short" >> "$GITHUB_OUTPUT"
export archive_name="conUDS_$sha_short_${{ inputs.target }}.zip"
export archive_name="conUDS_${sha_short}_${{ inputs.target }}.zip"
echo "archive_name=$archive_name" >> "$GITHUB_OUTPUT"
cat "$GITHUB_OUTPUT"
printf "\n📦 Creating the archive...\n"
cp "./conUDS/target/${{ inputs.target }}/release/conUDS" "./conUDS/"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
with:
target: ${{ matrix.target }}
- name: Create Artifact Archive
id: create-archive
uses: ./.github/actions/archive
with:
target: ${{ matrix.target }}
Expand Down

0 comments on commit 2d6cf45

Please sign in to comment.