FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ScottPlot.NET/.github/workflows/cicd.yaml at main · suhanlim/ScottPlot.NET · GitHub
suhanlim
/
ScottPlot.NET
Public
forked from
ScottPlot/ScottPlot.NET
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ScottPlot.NET
/
.github
/
workflows
/
cicd.yaml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
39 lines (36 loc) · 1.31 KB
Breadcrumbs
ScottPlot.NET
/
.github
/
workflows
/
cicd.yaml
Copy path
File metadata and controls
39 lines (36 loc) · 1.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
:
Website
on
:
workflow_dispatch
:
push
:
#
only runs on commits to main branch (typically after a merge)
branches
:
-
main
#
cancel running versions of this workflow when this one starts
concurrency
:
group
:
${{ github.workflow }}
cancel-in-progress
:
true
jobs
:
deploy
:
name
:
Build and Deploy
runs-on
:
ubuntu-latest
steps
:
-
name
:
🛒 Checkout
uses
:
actions/checkout@v3
-
name
:
✨ Setup Hugo
env
:
HUGO_VERSION
:
0.121.1
run
:
|
mkdir ~/hugo
cd ~/hugo
curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" --output hugo.tar.gz
tar -xvzf hugo.tar.gz
sudo mv hugo /usr/local/bin
-
name
:
🛠️ Build
run
:
hugo
-
name
:
🔐 Create Key File
run
:
install -m 600 -D /dev/null ~/.ssh/id_rsa
-
name
:
🔑 Populate Key
run
:
echo "${{ secrets.PRIVATE_KEY }}" > ~/.ssh/id_rsa
-
name
:
🚀 Upload
run
:
rsync --archive --stats -e 'ssh -p 18765 -o StrictHostKeyChecking=no' public/ scottplot.net@ssh.scottplot.net:~/www/scottplot.net/public_html/
#
no delete!
-
name
:
🧹 Clear Cache
run
:
ssh scottplot.net@ssh.scottplot.net -p 18765 "site-tools-client domain update id=1 flush_cache=1"
Back
|
FazBrowse Home
|
New Git URL