Update build.yml

This commit is contained in:
2024-10-14 01:36:18 +02:00
committed by Myx
parent a1c9d50381
commit dbc3f93227

View File

@@ -3,10 +3,10 @@ name: Build and Release Angular App
on: on:
push: push:
branches: branches:
- main - master
pull_request: pull_request:
branches: branches:
- main - master
jobs: jobs:
build: build:
@@ -25,17 +25,17 @@ jobs:
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: Install dependencies - name: Install dependencies and build Angular app
run: npm install run: |
cd ./tools
- name: Build the Angular app npm install
run: npm run build npm run build
- name: Upload build artifacts - name: Upload build artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: angular-app name: angular-app
path: dist/angular-app path: tools/dist/angular-app
release: release:
needs: build needs: build
@@ -49,7 +49,7 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: angular-app name: angular-app
path: dist/angular-app path: tools/dist/angular-app
- name: Create GitHub Release - name: Create GitHub Release
id: create_release id: create_release
@@ -68,6 +68,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/angular-app asset_path: tools/dist/angular-app
asset_name: angular-app.zip asset_name: angular-app.zip
asset_content_type: application/zip asset_content_type: application/zip