This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
Attach Swift binaries to GitHub releases. #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Swift (Test) | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
ios: | |
name: Create Release PR on SwiftPM Repo | |
runs-on: macos-14 | |
steps: | |
- name: 🧮 Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.76 | |
profile: minimal | |
override: true | |
- name: Install targets | |
run: make targets-ios | |
- name: Set Xcode 15.2 | |
run: sudo xcode-select -switch /Applications/Xcode_15.2.app | |
- name: Set SwiftPM Repo credentials | |
uses: de-vri-es/setup-git-credentials@v2 | |
with: | |
credentials: https://${{secrets.PAT_USER}}:${{secrets.PAT}}@github.com/ | |
- name: Get tag | |
id: tag | |
uses: dawidd6/action-get-tag@v1 | |
- name: Release iOS | |
working-directory: platforms/ios/tools/release | |
run: swift run release --version 2.35.1 # ${{ steps.tag.outputs.tag }} | |
env: | |
SWIFT_RELEASE_TOKEN: ${{ secrets.PAT }} |