From 377c2ffa5262b1d9795b367eb3f09672d257be48 Mon Sep 17 00:00:00 2001 From: Timothy Gonzalez <105177619+Timothy-Gonzalez@users.noreply.github.com> Date: Sun, 4 Feb 2024 04:50:09 -0600 Subject: [PATCH] Fix release workflow Prevents issue from files now existing in amalgamate and fixes artifact uploading --- .github/workflows/release.yaml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f130621..1662eb7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,22 +52,10 @@ jobs: shell: bash run: | mkdir staging - cp amalgamate/* staging/ + cp amalgamate/caught.h amalgamate/caught.c staging/ cd staging zip ../release.zip * - - name: Prepare Asset Name - shell: bash - run: | - TAG_NAME=$( - if [ "${{ github.event_name }}" == 'workflow_dispatch' ]; then - echo "${{ github.event.inputs.tag }}"; - else - echo "${{ github.ref_name }}"; - fi - ) - echo "ASSET_NAME=caught-$TAG_NAME" >> $GITHUB_ENV - - name: Upload .h to Release uses: actions/upload-release-asset@v1 env: @@ -88,8 +76,14 @@ jobs: asset_name: caught.c asset_content_type: application/octet-stream - - name: Upload Archive as Artifact - uses: actions/upload-artifact@v3 + - name: Upload .h as Artifact + uses: actions/upload-artifact@v4 + with: + name: caught.h + path: caught.h + + - name: Upload .c as Artifact + uses: actions/upload-artifact@v4 with: - name: ${{ env.ASSET_NAME }}.zip - path: release.zip + name: caught.c + path: caught.c