|
| 1 | +name: Build |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - v* |
| 7 | +concurrency: |
| 8 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 9 | + cancel-in-progress: true |
| 10 | +jobs: |
| 11 | + build: |
| 12 | + name: Build |
| 13 | + runs-on: macos-13 |
| 14 | + permissions: |
| 15 | + contents: write |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v4 |
| 18 | + - name: Install Theos |
| 19 | + uses: Randomblock1/[email protected] |
| 20 | + with: |
| 21 | + # Where to install Theos |
| 22 | + theos-dir: ${{ github.workspace }}/theos |
| 23 | + # Where to clone Theos from (git URL) |
| 24 | + theos-src: https://github.com/theos/theos |
| 25 | + # Where to clone the iOS SDKs from (GitHub repository URL) |
| 26 | + theos-sdks: https://github.com/theos/sdks |
| 27 | + # Which branch to clone from SDK repo |
| 28 | + theos-sdks-branch: master |
| 29 | + # Whether to enable Orion, which adds support for Swift tweaks |
| 30 | + orion: false |
| 31 | + - name: Run build script |
| 32 | + run: chmod +x ./build.sh && ./build.sh |
| 33 | + - name: Create GitHub Release |
| 34 | + env: |
| 35 | + GITHUB_TOKEN: ${{ github.token }} |
| 36 | + run: >- |
| 37 | + gh release create |
| 38 | + '${{ github.ref_name }}' |
| 39 | + --repo '${{ github.repository }}' |
| 40 | + --notes "" |
| 41 | + -t 'Release ${{ github.ref_name }}' |
| 42 | + - name: Upload artifact signatures to GitHub Release |
| 43 | + env: |
| 44 | + GITHUB_TOKEN: ${{ github.token }} |
| 45 | + # Upload to GitHub Release using the `gh` CLI. |
| 46 | + # `dist/` contains the built packages, and the |
| 47 | + # sigstore-produced signatures and certificates. |
| 48 | + run: >- |
| 49 | + gh release upload |
| 50 | + '${{ github.ref_name }}' packages/** |
| 51 | + --repo '${{ github.repository }}' |
| 52 | + |
0 commit comments