Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
runs-on: ${{ matrix.os }}
# SECURITY: Only grant write permission where needed
permissions:
contents: write
contents: read
attestations: write # SECURITY: For artifact attestation
id-token: write # SECURITY: For OIDC signing

Expand Down Expand Up @@ -164,11 +164,37 @@ jobs:
with:
subject-path: "shield-*"

- name: Upload binary and checksum to Release
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.platform }}-${{ matrix.arch }}
path: |
shield-${{ matrix.platform == 'win32' && 'windows' || matrix.platform }}-${{ matrix.arch }}${{ matrix.platform == 'win32' && '.exe' || '' }}
shield-${{ matrix.platform == 'win32' && 'windows' || matrix.platform }}-${{ matrix.arch }}${{ matrix.platform == 'win32' && '.exe' || '' }}.sha256

# ==========================================
# Job 3: Create GitHub Release with all binaries
# ==========================================
create-release:
name: Create GitHub Release
needs: build-binaries
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
pattern: binary-*
merge-multiple: true

- name: List release files
run: ls -la shield-*

- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
shield-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.platform == 'win32' && '.exe' || '' }}
shield-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.platform == 'win32' && '.exe' || '' }}.sha256
files: shield-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yieldxyz/shield",
"version": "1.1.1",
"version": "1.2.0",
"description": "Zero-trust transaction validation library for Yield.xyz integrations.",
"packageManager": "pnpm@10.12.2",
"main": "./dist/index.js",
Expand Down
Loading