forked from EmulatorJS/EmulatorJS
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (38 loc) · 1 KB
/
latest.yml
File metadata and controls
38 lines (38 loc) · 1 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
name: Make Latest Folder On EmulatorJS CDN
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
jobs:
run:
if: github.repository == 'EmulatorJS/EmulatorJS'
runs-on: emulatorjs-server
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Permissions
run: |
cd /mnt/HDD/public
chmod -R 775 .EmulatorJS/
- name: Update Latest
run: |
cd /mnt/HDD/public/.EmulatorJS/
git fetch --all
git reset --hard origin/main
git pull
- name: Minify Files
run: |
cd /mnt/HDD/public/.EmulatorJS/
npm i
npm run minify
- name: Zip Minified Files
run: |
cd /mnt/HDD/public/.EmulatorJS/data/
zip emulator.min.zip emulator.min.js emulator.min.css
- name: Clean Up Minify
run: |
cd /mnt/HDD/public/.EmulatorJS/
rm -f "minify/package-lock.json"
rm -rf "minify/node_modules/"