ci(release): 🚧 trying release ci

This commit is contained in:
pakintada@gmail.com 2024-03-29 10:16:28 +07:00
parent 753363dd44
commit 9b37b89c57

35
.github/workflows/publish.yml vendored Normal file
View 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