Update M3U8.cs #216
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: 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 |