Skip to content

Commit

Permalink
Explicitly specify working directories
Browse files Browse the repository at this point in the history
  • Loading branch information
gingershaped authored Sep 9, 2024
1 parent 6db732e commit d4a9260
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,34 +36,31 @@ jobs:
distribution: "adopt"

- name: Clone vyxal.github.io
run: |
git clone https://github.com/Vyxal/vyxal.github.io.git
cd vyxal.github.io
rm -rfd .git
run: git clone https://github.com/Vyxal/vyxal.github.io.git

- name: Install build dependencies
working-directory: ./vyxal.github.io
run: npm install

- name: Compile in archive mode
working-directory: ./vyxal.github.io
run: npx webpack --mode production --env vy-archive=vyxal --progress

- name: Clone the Vyxal repository
run: |
git clone https://github.com/Vyxal/Vyxal.git -b ${{github.event.client_payload.tag}}
cd Vyxal
rm -rfd .git
working-directory: ./vyxal.github.io
run: git clone https://github.com/Vyxal/Vyxal.git -b ${{github.event.client_payload.tag}}

- name: Compile Vyxal
working-directory: ./vyxal.github.io/Vyxal/
run: ./mill js.fullLinkJS

- name: Generate theseus data
working-directory: ./vyxal.github.io/Vyxal/
run: ./mill jvm.theseus

- name: Move everything into the right places
run: |
cd ..
mv -v Vyxal/pages/ dist/vyxal
cd ..
mv -v vyxal.github.io/Vyxal/pages/ vyxal.github.io/dist/vyxal
mv vyxal.github.io/dist/ ./${{github.event.client_payload.tag}}
rm -rfd vyxal.github.io
Expand Down

0 comments on commit d4a9260

Please sign in to comment.