mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-29 10:16:53 +02:00
Add CI
This commit is contained in:
parent
5e27e22c29
commit
11b49f0553
1 changed files with 43 additions and 0 deletions
43
.github/workflows/build.yaml
vendored
Normal file
43
.github/workflows/build.yaml
vendored
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
name: Build Site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
name: Update Site
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
name: Checkout Repo
|
||||||
|
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12.x'
|
||||||
|
|
||||||
|
- run: npm install
|
||||||
|
name: Install Dependencies
|
||||||
|
|
||||||
|
- run: npm run build
|
||||||
|
name: Build Site
|
||||||
|
|
||||||
|
- name: Archive Release (zip)
|
||||||
|
uses: thedoctor0/zip-release@master
|
||||||
|
with:
|
||||||
|
path: './public'
|
||||||
|
filename: 'public.zip'
|
||||||
|
|
||||||
|
- name: Archive Release (tar)
|
||||||
|
uses: thedoctor0/zip-release@master
|
||||||
|
with:
|
||||||
|
path: './public'
|
||||||
|
filename: 'public.tar'
|
||||||
|
type: 'tar'
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
name: Upload Artifacts
|
||||||
|
with:
|
||||||
|
name: site-build
|
||||||
|
path: public.*
|
Loading…
Add table
Reference in a new issue