Make releases archive not contain build folder #4
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
name: Build and publish static files | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '21.5.0' | |
- name: Install dependencies | |
working-directory: ./client | |
run: npm ci | |
- name: Build | |
working-directory: ./client | |
run: npm run build | |
- name: Compress build | |
working-directory: ./client | |
run: tar -czf build.tar.gz -C build . | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
./client/build.tar.gz |