Skip to content

Commit bbb0185

Browse files
committed
Github Actions: Fix release workflow
1 parent cc084a9 commit bbb0185

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/objective-c-xcode.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
build:
1010
name: Build and release
1111
runs-on: macos-latest
12+
permissions:
13+
contents: write
1214

1315
steps:
1416
- name: Checkout code
@@ -18,11 +20,7 @@ jobs:
1820
run: make
1921

2022
- name: Create Release
21-
id: create_release
22-
uses: softprops/action-gh-release@v2
23-
with:
24-
draft: false
25-
prerelease: false
26-
files: |
27-
trash
28-
name: ${{ github.ref }}
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
run: |
26+
gh release create ${{ github.ref_name }} ./trash

0 commit comments

Comments
 (0)