aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml13
1 files changed, 1 insertions, 12 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7708883..0dcf439 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -48,23 +48,12 @@ jobs:
draft: false
prerelease: false
- - 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: ${{ steps.read_upload_url.outputs }} # Read from the previous step's output
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
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