Skip to content

Commit c3ccede

Browse files
committed
Upload artifact to release from Linux
1 parent efc8a31 commit c3ccede

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/notarize.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
build-and-notarize:
14+
name: Build and Notarize SwiftFormat for Xcode
1415
runs-on: macos-15
1516

1617
steps:
@@ -152,10 +153,25 @@ jobs:
152153
with:
153154
name: SwiftFormat-for-Xcode
154155
path: ${{ env.ZIP_DIR }}/SwiftFormat.for.Xcode.app.zip
155-
156-
- name: Upload to Release
156+
157+
upload:
158+
name: Upload release artifacts
159+
runs-on: ubuntu-latest
160+
needs: [build-and-notarize]
161+
steps:
162+
- name: Checkout the repository
163+
uses: actions/checkout@v4
164+
with:
165+
ref: ${{ github.event.release.tag_name || inputs.tag }}
166+
- uses: actions/download-artifact@v4
167+
with:
168+
path: downloaded_artifacts
169+
pattern: SwiftFormat-for-Xcode
170+
- name: Display structure of downloaded files
171+
run: ls -R downloaded_artifacts
172+
- name: Upload release assets
157173
uses: skx/github-action-publish-binaries@master
158174
env:
159175
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
160176
with:
161-
args: ${{ env.ZIP_DIR }}/SwiftFormat.for.Xcode.app.zip
177+
args: 'downloaded_artifacts/SwiftFormat-for-Xcode/SwiftFormat.for.Xcode.app.zip'

0 commit comments

Comments
 (0)