Skip to content

Commit

Permalink
Update release upload_url
Browse files Browse the repository at this point in the history
  • Loading branch information
autozimu committed Nov 9, 2024
1 parent 734a4b3 commit 19466ed
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Output release URL file
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt
- name: Save Release URL File for publish
uses: actions/upload-artifact@v4
with:
name: release_url
path: release_url.txt

build-test-and-release:
strategy:
Expand Down Expand Up @@ -75,23 +68,13 @@ jobs:
uses: actions/download-artifact@v4
with:
name: release_url
- name: Get release file name & upload URL
if: startsWith(github.ref, 'refs/tags/v')
id: get_release_info
run: |
echo ::set-output name=file_name::${REPOSITORY_NAME##*/}-${TAG_REF_NAME##*/v} # RepositoryName-v1.0.0
value=`cat release_url/release_url.txt`
echo ::set-output name=upload_url::$value
env:
TAG_REF_NAME: ${{ github.ref }}
REPOSITORY_NAME: ${{ github.repository }}
- name: "Upload the artifacts"
uses: actions/upload-release-asset@v1
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release_info.outputs.upload_url }}
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ./target/${{ matrix.job.target }}/release/unison-fsmonitor-${{ matrix.job.exe }}.tar.gz
asset_name: unison-fsmonitor-${{ matrix.job.exe }}.tar.gz
asset_content_type: application/gzip

0 comments on commit 19466ed

Please sign in to comment.