improve #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
with: | |
version: "latest" | |
- name: Install dependencies | |
run: pnpm i | |
- name: Install dependencies for SSG | |
working-directory: ssg/ | |
run: pnpm i | |
- name: Build SPA | |
working-directory: . | |
run: pnpm run build | |
- name: Build SSG | |
working-directory: ssg/ | |
run: pnpm run build | |
- name: Create release directory | |
run: mkdir release | |
- name: Move files to release directory | |
run: | | |
mv dist release/spa | |
mv ssg/build release/ssg | |
- name: Remove robots.txt | |
run: rm release/ssg/**/robots.txt | |
- name: Remove sitemap.xml | |
run: rm release/ssg/**/sitemap.xml | |
- name: Remove .well-known for another language | |
run: rm -r release/ssg/*/.well-known | |
- uses: montudor/action-zip@v1 | |
with: | |
args: zip -qq -r release.zip release | |
- name: Show files | |
run: ls |