Skip to content

Merge pull request #63 from DivyaPremanantha/main #1

Merge pull request #63 from DivyaPremanantha/main

Merge pull request #63 from DivyaPremanantha/main #1

name: Build and Release on Tag Push
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Upload dist folder as an artifact
uses: actions/upload-artifact@v4
with:
name: dist-output
path: dist/
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download dist folder artifact
uses: actions/download-artifact@v4
with:
name: dist-output
path: ./dist-output
- name: Debug dist-output contents
run: ls -R ./dist-output
- name: Create or Update GitHub Release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref_name }}
name: WSO2 API Developer Portal Core ${{ github.ref_name }}
body: "WSO2 API Developer Portal Core serves as a development portal offering fundamental layout and structural components."
draft: false
prerelease: false
artifacts: "./dist-output/*"
allowUpdates: true