Update CD steps

This commit is contained in:
Balazs Perlaki-Horvath 2024-01-13 15:33:09 +01:00
parent a12540c54f
commit a3271af398

View File

@ -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