Merge pull request #3495 from mathesar-foundation/3493_record_selecto… #1
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 static files and create draft release | |
on: | |
push: | |
tags: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Build frontend static files | |
working-directory: ./mathesar_ui | |
run: npm ci && npm run build | |
- name: Move static files | |
run: mv ./mathesar/static/mathesar ./static_files | |
- name: Zip static files | |
uses: montudor/action-zip@v1 | |
with: | |
args: zip -qq -r static_files.zip static_files | |
- name: Create a draft release | |
id: create_release | |
uses: shogo82148/actions-create-release@v1 | |
with: | |
draft: true | |
- name: Upload assets | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: static_files.zip |