Split release into build and dotslash jobs
The dotslash-publish-release action is a container action that requires
a Linux runner, so it runs as a separate job after the macOS build.

Assisted-by: Claude Opus 4.6 via pi
change yvtvryvkkozrplsxpvotpslpwrqxqnqt
commit 1209989175f4609613144ed45198728f9f0ce60d
author Alpha Chen <alpha@kejadlen.dev>
date
parent vznprzxm
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 06282af..bed78b2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -11,9 +11,11 @@ permissions:
   contents: write
 
 jobs:
-  release:
+  build:
     if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
     runs-on: macos-latest
+    outputs:
+      version: ${{ steps.version.outputs.version }}
     steps:
       - uses: actions/checkout@v4
         with:
@@ -56,10 +58,16 @@ jobs:
         env:
           GH_TOKEN: ${{ github.token }}
 
+  dotslash:
+    needs: build
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+
       - name: Generate DotSlash file
         uses: facebook/dotslash-publish-release@v1
         with:
           config: .github/dotslash-config.json
-          tag: v${{ steps.version.outputs.version }}
+          tag: v${{ needs.build.outputs.version }}
         env:
           GITHUB_TOKEN: ${{ github.token }}