-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (69 loc) · 2.1 KB
/
airglow.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Airglow
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 5
submodules: true
path: airglow
- name: Checkout website
uses: actions/checkout@v4
with:
repository: mthierman/mthierman.com
token: ${{ secrets.WEBSITE }}
path: mthierman.com
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: latest
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "*"
check-latest: true
cache: "pnpm"
cache-dependency-path: airglow/pnpm-lock.yaml
- name: Install node_modules
run: |
Set-Location ${{ github.workspace }}\airglow
pnpm install
pnpm manifest
- name: Cache
uses: actions/cache@v4
id: deps
with:
path: |
${{ github.workspace }}/airglow/build/_deps
key: deps-${{ hashFiles('airglow/CMakeLists.txt') }}
- name: Stable release
if: github.ref == 'refs/heads/main'
run: |
Set-Location ${{ github.workspace }}\airglow
Import-Module ${{ github.workspace }}\airglow\libs\Glow\tools\PowerShell
Import-Module ${{ github.workspace }}\airglow\tools\PowerShell
Invoke-DevShell
Invoke-CMake
Compress-Airglow
Restore-Wix
Build-AirglowInstaller
Publish-Airglow
- name: Update website
run: |
Set-Location ${{ github.workspace }}\mthierman.com
Copy-Item "${{ github.workspace }}\airglow\build\manifest.json" -Destination "${{ github.workspace }}\mthierman.com\src\content\projects\airglow.json"
git config user.name github-actions
git config user.email [email protected]
git add -A
git commit -m 'Update Airglow'
git push