Skip to content

Commit

Permalink
try fix upload and change rel name
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Jan 19, 2024
1 parent eb66663 commit 69f2140
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
echo "name=${SAFE_NAME}-${SHORT_HASH}" >> $GITHUB_OUTPUT
fi
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ steps.tag.outputs.name }}-${{ runner.os }}-ubuntu20.04-x86_64
# TODO: do propper packing
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
echo "name=${SAFE_NAME}-${SHORT_HASH}" >> $GITHUB_OUTPUT
fi
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ steps.tag.outputs.name }}-${{ runner.os }}-msvc-x86_64
# TODO: do propper packing
Expand Down Expand Up @@ -127,7 +127,9 @@ jobs:
- name: Download artifacts
id: download-artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ./artifacts/

- name: Create release
env:
Expand All @@ -137,7 +139,7 @@ jobs:
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v} nightly" \
--title="nightly ${tag#v}" \
--generate-notes \
--prerelease
Expand All @@ -147,5 +149,6 @@ jobs:
tag: ${{ steps.tag.outputs.name }}
shell: bash
run: |
gh release upload "$tag" ./artifact \
ls -la
gh release upload "$tag" ./artifacts/* \
--repo="$GITHUB_REPOSITORY"

0 comments on commit 69f2140

Please sign in to comment.