mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2026-03-01 16:48:22 +00:00
fix: Add checksum to release tag and fix zip invocation
Fix zip creation so the bundle is archived with the bundle root rather than its full path. Use a standardized zip path, set Process.currentDirectoryURL to the bundle's parent, and pass the bundle basename to /usr/bin/zip.
This commit is contained in:
parent
9be0695c55
commit
f9024a8cd7
2 changed files with 10 additions and 10 deletions
12
.github/workflows/release-tailwindcss-cli.yml
vendored
12
.github/workflows/release-tailwindcss-cli.yml
vendored
|
|
@ -70,7 +70,7 @@ jobs:
|
|||
- name: Create release
|
||||
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
|
||||
with:
|
||||
tag_name: TailwindCSSCLI-${{ inputs.tailwind_version }}
|
||||
tag_name: TailwindCSSCLI-${{ inputs.tailwind_version }}-${{ steps.checksum.outputs.checksum }}
|
||||
name: TailwindCSS CLI ${{ inputs.tailwind_version }}
|
||||
body: |
|
||||
## TailwindCSS CLI Artifact Bundles
|
||||
|
|
@ -82,20 +82,14 @@ jobs:
|
|||
- macOS x64 (`x86_64-apple-darwin`)
|
||||
- macOS ARM64 (`aarch64-apple-darwin`)
|
||||
|
||||
### Usage
|
||||
Add the artifact bundle to your `Package.swift`:
|
||||
### Binary Target Definition
|
||||
```swift
|
||||
.binaryTarget(
|
||||
name: "TailwindCSSCLI",
|
||||
url: "https://github.com/${{ github.repository }}/releases/download/TailwindCSSCLI@${{ inputs.tailwind_version }}/tailwindcss.artifactbundleindex",
|
||||
url: "https://github.com/${{ github.repository }}/releases/download/TailwindCSSCLI-${{ inputs.tailwind_version }}-${{ steps.checksum.outputs.checksum }}/tailwindcss.artifactbundleindex",
|
||||
checksum: "${{ steps.checksum.outputs.checksum }}"
|
||||
)
|
||||
```
|
||||
|
||||
### Checksum
|
||||
```
|
||||
${{ steps.checksum.outputs.checksum }}
|
||||
```
|
||||
draft: false
|
||||
prerelease: false
|
||||
make_latest: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue