Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from IvanJosipovic/dev
Browse files Browse the repository at this point in the history
Misc CI/CD updates
  • Loading branch information
IvanJosipovic authored Oct 20, 2019
2 parents dc0fa36 + 1bcc3c4 commit 926dfe2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 32 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
on:
push:
branches:
- '*'
name: CI/CD

on: [push]

jobs:
build:

name: CI/CD
runs-on: ubuntu-latest

timeout-minutes: 10

steps:
- uses: actions/checkout@master

- name: Checkout code
uses: actions/checkout@master
- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
dotnet-version: 3.1.100-preview1-014459

- name: Dotnet Publish
working-directory: src/BlazorTable.Sample
run: dotnet publish --configuration Release

- name: Deploy to Test
id: netlify
uses: ivanjosipovic/actions/cli@master
Expand All @@ -29,7 +26,6 @@ jobs:
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

- name: Deploy to Production
if: github.ref == 'refs/heads/master'
uses: ivanjosipovic/actions/cli@master
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,28 @@ on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Create Release

jobs:
build:
name: Create Release

runs-on: ubuntu-latest

timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@master

- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
dotnet-version: 3.1.100-preview1-014459

- name: Dotnet Pack
working-directory: src/BlazorTable
run: dotnet pack --configuration Release

- name: Dotnet Nuget Push
working-directory: src/BlazorTable/bin/Release
run: dotnet nuget push BlazorTable.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY
continue-on-error: true
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

- name: Create Release
uses: actions/create-release@master
env:
Expand Down
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ A simple Table Control for Blazor
### Todo
- Client Side
- Filtering
- String
- Numbers (WIP)
- String
- Numbers (WIP)

- Server Side
- Paging
Expand All @@ -29,16 +29,6 @@ A simple Table Control for Blazor

- Remove dependency on Bootstrap + BlazorStrap


- Responds to [CORS preflight requests](https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request)
1. Default header values (configurable)
- Access-Control-Allow-Origin = *
- Access-Control-Allow-Method = *
- Access-Control-Allow-Headers = *
- Access-Control-Max-Age = 86400
2. Adds “Access-Control-Allow-Origin” to all responses


### Sample
[Example](/src/BlazorTable.Sample/Pages/Index.razor)

Expand Down Expand Up @@ -76,4 +66,4 @@ A simple Table Control for Blazor
</Column>
<Pager TableItem="PersonData" />
</Table>
```
```

0 comments on commit 926dfe2

Please sign in to comment.