mirror of
https://github.com/kiwix/kiwix-apple-custom.git
synced 2025-09-26 06:23:45 -04:00
Validate tag, generate project
This commit is contained in:
parent
4c50c6b948
commit
dedb52d9de
38
.github/workflows/cd.yml
vendored
38
.github/workflows/cd.yml
vendored
@ -11,10 +11,28 @@ jobs:
|
|||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check-out kiwix/apple
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: kiwix/apple
|
||||||
|
path: apple
|
||||||
|
ref: main
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: custom
|
path: custom
|
||||||
|
|
||||||
|
- name: Install Python dependencies for custom project generation
|
||||||
|
run: python -m pip install pyyaml
|
||||||
|
|
||||||
|
- name: Install Kiwix dependencies
|
||||||
|
run:
|
||||||
|
|
|
||||||
|
cd apple
|
||||||
|
brew bundle
|
||||||
|
bundle update
|
||||||
|
cd ..
|
||||||
|
|
||||||
- name: Set tag variable as an output
|
- name: Set tag variable as an output
|
||||||
id: vars
|
id: vars
|
||||||
@ -22,8 +40,24 @@ jobs:
|
|||||||
|
|
|
|
||||||
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
|
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Validate tag
|
- name: Validate tag, generate project
|
||||||
|
env:
|
||||||
|
DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION: ${{ secrets.DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION }}
|
||||||
run:
|
run:
|
||||||
|
|
|
|
||||||
cd custom
|
# move the custom files under the same folder as the kiwix repo
|
||||||
|
mv custom/ apple/
|
||||||
|
cd apple/custom
|
||||||
|
|
||||||
|
# make a custom copy of the Info.plist file
|
||||||
|
cp ../Support/Info.plist Custom.plist
|
||||||
|
|
||||||
python src/tag_validator.py ${{ steps.vars.outputs.tag }} | python src/generate_and_download.py
|
python src/tag_validator.py ${{ steps.vars.outputs.tag }} | python src/generate_and_download.py
|
||||||
|
|
||||||
|
# move the custom project file to the main folder
|
||||||
|
mv custom_project.yml ../
|
||||||
|
cd ..
|
||||||
|
ls -la
|
||||||
|
|
||||||
|
# run xcodegen on our custom project
|
||||||
|
xcodegen -s custom_project.yml
|
Loading…
x
Reference in New Issue
Block a user