From bdb07b40b6afe2c7c9341b33e535404d67243717 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 4 Jun 2024 16:59:05 +0200 Subject: Testing --- .github/workflows/release.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68c433e..7708883 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,15 +48,23 @@ jobs: draft: false prerelease: false - - name: Capture upload URL - run: echo "##v1_${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_ENV + - name: Create temporary file with upload URL + run: | + echo "##v1_https://uploads.github.com/repos/srdusr/dotfiles/releases/158822361/assets{?name,label}" > upload_url.txt + + - name: Read upload URL from temporary file + id: read_upload_url + run: cat upload_url.txt - name: Upload zip to release uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ env.UPLOAD_URL }} + upload_url: ${{ steps.read_upload_url.outputs }} # Read from the previous step's output asset_path: /home/runner/dotfiles.zip asset_name: dotfiles.zip asset_content_type: application/zip + + - name: Clean up temporary file (optional) + run: rm upload_url.txt -- cgit v1.2.3