forked from roothide/Bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fa0963
commit a5f0b1f
Showing
1 changed file
with
35 additions
and
52 deletions.
There are no files selected for viewing
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
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 |