Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
Prevents issue from files now existing in amalgamate and fixes artifact
uploading
  • Loading branch information
Timothy-Gonzalez committed Feb 4, 2024
1 parent 560977d commit 377c2ff
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 377c2ff

Please sign in to comment.