-
Notifications
You must be signed in to change notification settings - Fork 32
46 lines (35 loc) · 1.16 KB
/
pushmaster.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
40
41
42
43
44
45
46
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push request event for the master branch
push:
branches: [master]
jobs:
deploy:
# Our previously created self-hosted runner
runs-on: self-hosted
strategy:
matrix:
dotnet: ["7.0.x"]
# A sequence of tasks that will execute as part of the job
steps:
- name: Show current user
run: dotnet --version
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/[email protected]
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Stop the app
run: |
sudo systemctl stop m3u8-proxy.service
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
# We will output publish files to the folder we previously created
- name: Publish
run: dotnet publish -c Release -o /var/www/m3u8-proxy
- name: Start the app
run: |
sudo systemctl start m3u8-proxy.service