Skip to content

Commit

Permalink
Only use CI for uploading release assets
Browse files Browse the repository at this point in the history
release creation happens through Github UI
  • Loading branch information
duksis committed May 29, 2024
1 parent acc4576 commit aad895c
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
tags:
- 'v*'

name: Create Release
name: Build release assets

jobs:
build:
Expand All @@ -12,34 +12,14 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: true
prerelease: false
- name: Build
run: sh scripts/package_dmg.sh
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: https://github.com/duksis/Lock/releases/tag/${{ github.ref }}
asset_path: ./dist/lock.dmg
asset_name: lock.dmg
asset_content_type: application/octet-stream
- name: Publish release
uses: StuYarrow/publish-release@v1.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.create_release.outputs.id }}

0 comments on commit aad895c

Please sign in to comment.