forked from ScottPlot/ScottPlot
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 1.04 KB
/
task-code-metrics.yaml
File metadata and controls
30 lines (27 loc) · 1.04 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
# run the autoformatter and commit changes back to the main branch
name: Analyze Code Metrics
on:
workflow_dispatch:
workflow_call:
secrets:
private-ssh-key:
required: true
jobs:
code-metrics:
name: Code Metrics
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
- name: ✨ Setup .NET
uses: actions/setup-dotnet@v4
- name: 🧪 Run Code Analysis
run: dotnet run dotnet run --project dev/CodeAnalysis
- name: 🔐 Create Key File
run: install -m 600 -D /dev/null ~/.ssh/id_rsa
- name: 🔑 Populate Key
run: echo "${{ secrets.private-ssh-key }}" > ~/.ssh/id_rsa
- name: 🚀 Deploy Webpage
run: rsync -e 'ssh -p 18765 -o StrictHostKeyChecking=no' 'dev/www/metrics/index.html' 'scottplot.net@ssh.scottplot.net:/home/customer/www/scottplot.net/public_html/metrics/index.html'
- name: 🧹 Clear Cache
run: ssh scottplot.net@ssh.scottplot.net -p 18765 "site-tools-client domain update id=1 flush_cache=1"