File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,16 +60,21 @@ jobs:
6060 MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
6161 MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
6262 if : ${{ (env.MAVEN_USERNAME != null) && (github.ref == 'refs/heads/main') }}
63- run : mvn clean deploy -B
64- - name : Install bsdtar
65- run : |
66- sudo apt-get update
67- sudo apt-get install -y libarchive-tools
63+ run : mvn clean -DskipTests deploy -B
6864 - name : Unzip production artifacts
6965 run : |
66+ # 1. Unzip into a temporary directory
67+ unzip -q noisemodelling-scripts/target/*.zip -d tmp_extract
68+
69+ # 2. Create target directory
7070 mkdir NoiseModelling
71- # bsdtar handles .zip and supports --strip-components
72- bsdtar -xvf noisemodelling-scripts/target/*.zip --strip-components=1 -C NoiseModelling
71+
72+ # 3. Move contents from the subfolder to the target
73+ # The asterisk-slash-asterisk moves everything inside the first subfolder
74+ mv tmp_extract/*/* NoiseModelling/
75+
76+ # 4. Cleanup
77+ rm -rf tmp_extract
7378 - name : Generate Sanitized Artifact Name
7479 id : sanitize
7580 run : |
Original file line number Diff line number Diff line change 11name : Reusable macOS Build
22
33on :
4+ workflow_dispatch :
5+ inputs :
6+ git_ref :
7+ description : ' The git ref to checkout'
8+ required : true
9+ type : string
410 workflow_call :
511 inputs :
612 git_ref :
Original file line number Diff line number Diff line change 11name : Reusable Windows Build
22
33on :
4+ workflow_dispatch :
5+ inputs :
6+ git_ref :
7+ description : ' The git ref to checkout'
8+ required : true
9+ type : string
410 workflow_call :
511 inputs :
612 git_ref :
You can’t perform that action at this time.
0 commit comments