ci(release): 🚧 trying release ci
This commit is contained in:
parent
753363dd44
commit
9b37b89c57
1 changed files with 12 additions and 6 deletions
35
.github/workflows/publish.yml
vendored
Normal file
35
.github/workflows/publish.yml
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: Web Client Package
|
||||
on:
|
||||
pull_requests:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- releases
|
||||
jobs:
|
||||
build:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Open Web Client Folder
|
||||
run: cd ./client
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
registry-url: https://npm.pkg.github.com/
|
||||
- name: Install Angular CLI
|
||||
run: npm install -g @angular/cli
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Build Angular project
|
||||
run: ng build ${{ inputs.project_name }}
|
||||
- name: Create Release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
draft: false
|
||||
prerelease: false
|
||||
body: ${{ inputs.release_notes }}
|
||||
files: dist/client/*
|
||||
make_latest: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue