Skip to content

Commit

Permalink
fix: ci 40
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0-911 committed Apr 5, 2024
1 parent 793a6af commit b69a27d
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
compile_and_deploy_ENG:
name: Compile
runs-on: ubuntu-latest
needs: compile_and_deploy_IND
strategy:
matrix:
module:
Expand All @@ -74,10 +75,9 @@ jobs:

- name: Rename and Move Compiled PDF
run: |
mkdir -p dist
MODULE_NAME="${{matrix.module}}"
MODULE_NAME=${MODULE_NAME//\//_}
mv main.pdf dist/$MODULE_NAME.pdf
mv main.pdf $MODULE_NAME.pdf
echo "MODULE_NAME_SANITIZED=${MODULE_NAME}" >> $GITHUB_ENV
- name: Upload Compiled PDF
Expand All @@ -89,10 +89,29 @@ jobs:
merge-artifacts:
runs-on: ubuntu-latest
needs: [compile_and_deploy_IND, compile_and_deploy_ENG]
strategy:
matrix:
module:
[
P1/PengenalanBahasaC_IND,
P2/PerulanganPercabanganArrayString_IND,
P3/FungsidanRekursi_IND,
P4/PointerdanStruct_IND,
P1/PengenalanBahasaC_ENG,
P2/PerulanganPercabanganArrayString_ENG,
P3/FungsidanRekursi_ENG,
P4/PointerdanStruct_ENG,
]
steps:
# Langkah 1: Checkout kode (jika diperlukan)
- uses: actions/checkout@v2

- name: Configure env
run: |
MODULE_NAME="${{matrix.module}}"
MODULE_NAME=${MODULE_NAME//\//_}
echo "MODULE_NAME_SANITIZED=${MODULE_NAME}" >> $GITHUB_ENV
- uses: actions/upload-artifact/merge@v4
with:
name: merged-artifacts

0 comments on commit b69a27d

Please sign in to comment.