mirror of
https://github.com/kiwix/kiwix-apple-custom.git
synced 2025-09-22 11:51:04 -04:00
Update CD steps
This commit is contained in:
parent
a12540c54f
commit
a3271af398
33
.github/workflows/cd.yml
vendored
33
.github/workflows/cd.yml
vendored
@ -11,6 +11,18 @@ jobs:
|
||||
runs-on: macos-13
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: custom
|
||||
|
||||
- name: Set tag variable as an output
|
||||
id: vars
|
||||
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Validate tag
|
||||
run: python custom/src/tag_validator.py ${{ steps.vars.outputs.tag }}
|
||||
|
||||
- name: Check-out kiwix/apple
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@ -18,11 +30,6 @@ jobs:
|
||||
path: apple
|
||||
ref: main
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: custom
|
||||
|
||||
- name: Install Python dependencies for custom project generation
|
||||
run: python -m pip install pyyaml
|
||||
|
||||
@ -31,16 +38,9 @@ jobs:
|
||||
|
|
||||
cd apple
|
||||
brew bundle
|
||||
bundle update
|
||||
cd ..
|
||||
|
||||
- name: Set tag variable as an output
|
||||
id: vars
|
||||
run:
|
||||
|
|
||||
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Validate tag, generate project
|
||||
- name: Generate project based on tag
|
||||
env:
|
||||
DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION: ${{ secrets.DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION }}
|
||||
run:
|
||||
@ -57,7 +57,8 @@ jobs:
|
||||
# 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
|
||||
xcodegen -s custom_project.yml
|
||||
|
||||
ls -la
|
Loading…
x
Reference in New Issue
Block a user