Fix ci #40
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: Build GearGlimpseRevolution | |
on: | |
push: | |
branches: | |
- main | |
- "release/*" # Trigger this workflow on push to any release branch | |
jobs: | |
build: | |
permissions: | |
packages: write | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Theos | |
uses: nab138/theos-action@main | |
with: | |
cache-dir-theos: ${{ github.workspace }}/theos | |
cache-dir-sdks: ${{ github.workspace }}/theos/sdks | |
- name: Download Robot Model | |
uses: robinraju/[email protected] | |
with: | |
tarBall: false | |
zipBall: false | |
out-file-path: "Resources" | |
tag: "assets" | |
fileName: "Robot.usdz" | |
- name: Build | |
run: | | |
rm -f packages/* | |
make package FINALPACKAGE=1 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: GearGlimpseRevolution | |
path: packages/*.ipa | |
- name: Create Release | |
if: startsWith(github.ref, 'refs/heads/release/') | |
uses: elgohr/Github-Release-Action@v5 | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
# title is from the release branch name (release/v1.0.0 -> GearGlimpseRevolution v1.0.0) | |
title: GearGlimpseRevolution ${{ github.ref }} | |
- name: Upload Release Asset | |
if: startsWith(github.ref, 'refs/heads/release/') | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | |
asset_path: ./packages/GearGlimpseRevolution.ipa | |
asset_name: GearGlimpseRevolution.ipa | |
asset_content_type: application/octet-stream |