Skip to content

Commit

Permalink
Update build-deploy.yml (#3)
Browse files Browse the repository at this point in the history
* Update build-deploy.yml

* Fixed missing ng build

* More changes to deploy pipeline

* Removed coverage from action

* Updated ci/cd

- Fixed Readme
  • Loading branch information
timothydodd authored Sep 27, 2023
1 parent 9e0aebf commit 34a159c
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 25 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -25,48 +25,31 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: "5.x"
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.7
with:
useConfigFile: true
- name: Update version in package.json
run: |
sed -i "s/0.0.1/$GITVERSION_SEMVER/g" package.json
- name: Use Node 18.x
uses: actions/setup-node@v1
with:
node-version: "18.x"
- name: Install dependencies
run: npm ci
- name: Build
run: ng build --configuration production
run: npm run build:ci
- name: Archive build
if: success()
uses: actions/upload-artifact@v1
with:
name: deploy_dist
path: dist
- name: Archive code coverage result
if: success()
uses: actions/upload-artifact@v1
with:
name: deploy_coverage
path: coverage
deploy:
name: Deploy to Azure
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Download build
uses: actions/download-artifact@v1
with:
Expand Down
44 changes: 42 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,42 @@
# Util Plex
website with a bunch of developer utilities
# UtilPlex - Developer Utilities

UtilPlex is a collection of utility tools for developers, designed to simplify common tasks in the development workflow. This Angular-based website offers features such as JSON to YAML conversion and SQL/JSON formatters.


## Table of Contents

- [UtilPlex - Developer Utilities](#utilplex---developer-utilities)
- [Table of Contents](#table-of-contents)
- [Features](#features)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [License](#license)

## Features

UtilPlex provides the following features:

- **JSON to YAML Conversion:** Easily convert JSON data to YAML format.
- **SQL Formatter:** Format SQL queries for better readability.
- **JSON Formatter:** Format JSON data with proper indentation and line breaks.

## Getting Started

### Prerequisites

Before you can use UtilPlex, make sure you have the following prerequisites installed on your system:

- [Node.js](https://nodejs.org/) (v14 or higher)
- [Angular CLI](https://angular.io/cli) (v12 or higher)

### Installation

1. Clone the UtilPlex repository to your local machine:

```bash
git clone https://github.com/timothydodd/utilplex.git


## License
This project is licensed under the MIT License.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"build:ci": "ng build --configuration production",
"test": "ng test",
"lint": "ng lint"
},
Expand Down Expand Up @@ -54,4 +55,4 @@
"style-loader": "^3.3.3",
"typescript": "~5.1.3"
}
}
}

0 comments on commit 34a159c

Please sign in to comment.