-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.24 KB
/
dev.yaml
File metadata and controls
44 lines (38 loc) · 1.24 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
40
41
42
43
44
name: development
on:
push:
branches: [main]
jobs:
build:
# Prevent running this on forks
if: github.repository_owner == 'headwindsim'
runs-on: windows-latest
env:
RELEASE_ZIP_NAME: hdw-simlink.zip
BUILD_DIR_NAME: development
steps:
- name: Checkout source
uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: '18.2'
- name: Set BUILT_DATE_TIME
run: echo "BUILT_DATE_TIME=$(date -u -Iseconds)" >> $GITHUB_ENV
- name: Install NPM dependencies
run: npm ci
- name: Run Post Install Script
run: |
npm run postinstall
- name: Generate Windows Binary
run: |
npm run generate-windows
- name: Build ZIP File
run: |
node .\scripts\fragment.js
mkdir .\${{env.BUILD_DIR_NAME}}
Compress-Archive -Path .\bin\* .\${{env.BUILD_DIR_NAME }}\${{ env.RELEASE_ZIP_NAME }}
- name: Upload to CloudFlare CDN (dev)
env:
CLOUDFLARE_WORKER_PASSWORD: ${{ secrets.CLOUDFLARE_WORKER_PASSWORD }}
CF_BUCKET_DESTINATION: addons/simlink/development
run: node scripts\cdn.js ${{ env.CF_BUCKET_DESTINATION }} ./build-modules