From 53bffde62ad4089fb4faf1965678dfc8edf4d1b4 Mon Sep 17 00:00:00 2001 From: Babak Alizadeh Date: Mon, 9 Jun 2025 04:48:54 +0000 Subject: [PATCH] add github workflow --- webUI/.github/workflows/release.yml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 webUI/.github/workflows/release.yml diff --git a/webUI/.github/workflows/release.yml b/webUI/.github/workflows/release.yml new file mode 100644 index 0000000..d1172fe --- /dev/null +++ b/webUI/.github/workflows/release.yml @@ -0,0 +1,44 @@ +name: Build and Release + +on: + push: + tags: + - 'v*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install Dependencies + run: npm install + + - name: Build + run: npm run build-only + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./dist + asset_name: dist.zip + asset_content_type: application/zip \ No newline at end of file