-
Notifications
You must be signed in to change notification settings - Fork 274
39 lines (33 loc) · 1.02 KB
/
ci.yml
File metadata and controls
39 lines (33 loc) · 1.02 KB
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: CI
on:
push:
branches: [main]
tags: '*'
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'
- name: Install Chrome
run: |
which google-chrome || which chromium-browser || (
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list &&
sudo apt-get update -q &&
sudo apt-get install -y google-chrome-stable
)
- name: Build HTML, PDF artifacts and publish release
run: chmod +x ./build.sh && ./build.sh PublishRelease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}