Skip to content

Commit

Permalink
probably fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trippsanders authored Jan 8, 2024
1 parent 4fa0963 commit a5f0b1f
Showing 1 changed file with 35 additions and 52 deletions.
87 changes: 35 additions & 52 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,43 @@
name: Build and Package


on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
push:

branches: [ "main" ]

pull_request:

permissions:
contents: write
branches: [ "main" ]

workflow_dispatch:

env:
VERSION: 'beta 4.1'

jobs:
build:
name: Build Bootstrap
runs-on: macos-latest
environment: Auto Build And Release

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Install Theos
run: bash -c "$(curl -fsSL https://raw.githubusercontent.com/roothide/theos/master/bin/install-theos)"

- name: Setup Environment
run: echo "THEOS=~/theos" >> $GITHUB_ENV

- name: Set env
run: |
sT=$(TZ=UTC-8 date +'%S')
echo "msT=$(date -j -f "%Y-%m-%d %H:%M:%S" "$(TZ=UTC-8 date +'%Y-%m-%d %H:%M'):${sT}" +%s)" >> $GITHUB_ENV
echo "logT=$(TZ=UTC-8 date +'%Y年%m月%d %H:%M'):${sT}" >> $GITHUB_ENV
- name: Print env
run: |
echo ${{ env.VERSION }}
echo ${{ env.msT }}
echo ${{ env.logT }}
- name: Pre body
run: |
echo -e "更新时间:${{ env.logT }}" >> release.txt
echo -e "> - 同步官方beta 4.1代码更新,个别汉化等我修复" >> release.txt
- name: Build Bootstrap
run: |
make package
mv ./packages/Bootstrap.tipa Bootstrap.ipa

build:

name: Build Bootstrap

runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Install Theos
run: bash -c "$(curl -fsSL https://raw.githubusercontent.com/roothide/theos/master/bin/install-theos)"

- name: Setup Environment
run: echo "THEOS=~/theos" >> $GITHUB_ENV

- name: Make Bootstrap Package
run: make package

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Bootstrap.tipa
path: ./packages/Bootstrap.tipa

0 comments on commit a5f0b1f

Please sign in to comment.