Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersader committed Dec 10, 2024
1 parent 32a2173 commit 0d77d57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ "main" ]

permissions:
contents: write # This is critical for creating releases
contents: write

jobs:
create-release:
Expand Down Expand Up @@ -34,6 +34,7 @@ jobs:
zip -r obsidian-vault-${{ steps.extract_data.outputs.version }}.zip ./*
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.extract_data.outputs.version }}
Expand All @@ -47,7 +48,7 @@ jobs:
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: obsidian-vault-${{ steps.extract_data.outputs.version }}.zip
asset_name: obsidian-vault-${{ steps.extract_data.outputs.version }}.zip
asset_content_type: application/zip

0 comments on commit 0d77d57

Please sign in to comment.