Skip to content

Commit

Permalink
Restore trigger on release
Browse files Browse the repository at this point in the history
  • Loading branch information
xtremekforever committed Dec 24, 2024
1 parent b2f993d commit 7f1c1f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/actions/build-for-distribution/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ runs:
name: Build Swift + SDK using Sysroot
with:
swift-tag: ${{ inputs.swift-tag }}
swift-workspace-cache: ${{ inputs.swift-workspace-cache }}
sysroot-name: sysroot-${{ inputs.distribution }}-armv7
distribution: ${{ inputs.distribution }}
builder-tag: ${{ inputs.builder-tag }}
12 changes: 4 additions & 8 deletions .github/workflows/build-swift-release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Build Swift Release

on:
push:
branches: [ "feature/**" ]
release:
types: [published]

env:
SWIFT_VERSION: 6.0.1
SWIFT_TAG: swift-6.0.1-RELEASE
#SWIFT_VERSION: ${{ github.event.release.tag_name }}
#SWIFT_TAG: swift-${{ github.event.release.tag_name }}-RELEASE
SWIFT_VERSION: ${{ github.event.release.tag_name }}
SWIFT_TAG: swift-${{ github.event.release.tag_name }}-RELEASE
SWIFT_WORKSPACE_CACHE: swift-workspace

jobs:
Expand All @@ -20,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/checkout-swift
name: "Restore or Checkout: ${{ env.SWIFT_TAG }}"
name: "Restore or Checkout ${{ env.SWIFT_VERSION }}"
with:
swift-tag: ${{ env.SWIFT_TAG }}
swift-workspace-cache: ${{ env.SWIFT_WORKSPACE_CACHE }}
Expand All @@ -46,7 +42,7 @@ jobs:
source ./swift-builder/swift-builder-common
./swift-builder/build-container.sh
- uses: ./.github/actions/build-for-distribution
name: "Build & Publish Swift: ${{ env.SWIFT_VERSION }}"
name: "Build & Publish Swift ${{ env.SWIFT_VERSION }}"
with:
swift-tag: ${{ env.SWIFT_TAG }}
swift-workspace-cache: ${{ env.SWIFT_WORKSPACE_CACHE }}
Expand Down

0 comments on commit 7f1c1f4

Please sign in to comment.