-
Notifications
You must be signed in to change notification settings - Fork 32
39 lines (38 loc) · 950 Bytes
/
liara-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Shortener
env:
DOTNET_VERSION: '7'
'on':
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: Setup .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@v3
- 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