-
-
Notifications
You must be signed in to change notification settings - Fork 193
115 lines (104 loc) · 3.56 KB
/
upload-to-github-pages.yml
File metadata and controls
115 lines (104 loc) · 3.56 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: HyperHDR Package Build (Github Pages Repo)
on:
push:
tags:
- '*'
workflow_dispatch:
env:
USE_CACHE: "false"
RESET_CACHE: "false"
jobs:
######################################
###### Upload to HyperHDR repo #######
######################################
Linux:
name: ${{ matrix.architecture }}/${{ matrix.distroName}}:${{ matrix.distroVersion }}
runs-on: ${{ startsWith(matrix.architecture, 'arm') && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
env:
platform: ${{ startsWith(matrix.architecture, 'arm') && 'rpi' || 'linux' }}
strategy:
matrix:
distroName: [debian]
distroVersion: [bullseye, bookworm, trixie]
architecture: [amd64, armhf, arm64]
include:
- distroName: ubuntu
distroVersion: jammy
architecture: amd64
- distroName: ubuntu
distroVersion: noble
architecture: amd64
- distroName: ubuntu
distroVersion: questing
architecture: amd64
- distroName: fedora
distroVersion: 43
architecture: amd64
- distroName: archlinux
distroVersion: latest
architecture: amd64
steps:
- uses: actions/checkout@v6.0.2
with:
submodules: true
- name: Download ccache files
if: env.USE_CACHE == 'true'
uses: actions/cache@v5.0.3
with:
path: .ccache
key: ${{ matrix.architecture }}-${{ matrix.distroName }}-${{ matrix.distroVersion }}-ccache-${{ github.run_id }}
restore-keys: ${{ matrix.architecture }}-${{ matrix.distroName }}-${{ matrix.distroVersion }}-ccache-
- name: Build packages
env:
ARCHITECTURE: ${{ matrix.architecture }}
DISTRO_NAME: ${{ matrix.distroName }}
DISTRO_VERSION: ${{ matrix.distroVersion }}
PLATFORM: ${{ env.platform }}
USE_CCACHE: ${{ env.USE_CACHE }}
RESET_CACHE: ${{ env.RESET_CACHE }}
USE_STANDARD_INSTALLER_NAME: true
shell: bash
run: |
./build.sh
- name: Get destination path
run: |
echo "REPO_DIR=repo/pool/${{ matrix.distroVersion }}" >> $GITHUB_ENV
- name: Move installers
run: |
mkdir -p ${{ env.REPO_DIR }}
mkdir -p repo/others
mv deploy/Hyper*.deb ${{ env.REPO_DIR }} ||:
mv deploy/Hyper*.rpm repo/others ||:
mv deploy/Hyper*.zst repo/others ||:
rm -r repo/pool/ArchLinux ||:
- name: Upload artifacts from commit
uses: actions/upload-artifact@v7.0.0
with:
name: release-artifact-${{ matrix.architecture }}-${{ matrix.distroName }}-${{ matrix.distroVersion }}
path: repo
Upload:
name: Upload to Github Pages
runs-on: ubuntu-24.04
needs: [Linux]
steps:
- uses: actions/checkout@v6.0.2
with:
submodules: false
- name: Download artifacts
uses: actions/download-artifact@v8.0.0
with:
path: repo
pattern: release-artifact-*
merge-multiple: true
- name: Display structure of artifacts
run: ls -R repo
- name: Deploy the packages
uses: JamesIves/github-pages-deploy-action@v4.8.0
with:
repository-name: awawa-dev/awawa-dev.github.io
branch: upload
folder: repo
target-folder: repo
clean: false
commit-message: Release for ${{github.ref_name}}
ssh-key: ${{ secrets.UPLOADER_KEY }}