Generate Unsigned Package #368
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: Generate Unsigned Package | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "*" | |
schedule: | |
- cron: '0 3 * * *' # Runs every day at 3am | |
jobs: | |
build: | |
runs-on: macos-13 | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v3 | |
- name: Get Package Collection Generator | |
uses: actions/checkout@v3 | |
with: | |
repository: apple/swift-package-collection-generator | |
path: swift-package-collection-generator | |
- name: Build Package Collection Generator 🛠️ | |
run: | | |
cd swift-package-collection-generator | |
swift build --configuration release | |
- name: Build Unsigned Package 🛠️ | |
run: swift-package-collection-generator/.build/release/package-collection-generate RealityKit-Collection-Input.json RealityKit-Package-Collection.json | |
- name: Upload Unsigned Package ⬆️ | |
uses: actions/upload-artifact@v3 | |
with: | |
name: RealityKit-Package-Collection.json | |
path: RealityKit-Package-Collection-Unsigned.json | |
- name: Publish Release | |
if: github.ref_name == github.event.repository.default_branch | |
uses: svenstaro/upload-release-action@2.6.0 | |
with: | |
file: RealityKit-Package-Collection.json | |
asset_name: RealityKit-Package-Collection-Nightly.json | |
overwrite: true | |
tag: main-release | |