Add Cors extensions #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: thisisnabi.dev.apis | |
env: | |
DOTNET_VERSION: '8' | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v3 | |
- name: Set up .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Restore Nuget packages | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: update-liara | |
env: | |
LIARA_TOKEN: ${{ secrets.LIARA_API_TOKEN }} | |
run: | | |
npm i -g @liara/cli@5 | |
liara deploy --api-token="$LIARA_TOKEN" --no-app-logs |