-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (45 loc) · 1.55 KB
/
installer-scripts-release.yaml
File metadata and controls
55 lines (45 loc) · 1.55 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
name: Publish Installer Scripts to GitHub Pages
on:
push:
branches: [ main ]
paths:
- 'installer/get.ps1'
- 'installer/get.sh'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
publish:
name: Publish Installer Scripts to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
- name: Prepare installer scripts for GitHub Pages
run: |
echo "Preparing installer scripts for deployment..."
mkdir -p _site
cp installer/get.ps1 _site/
cp installer/get.sh _site/
echo "Files in _site directory:"
ls -la _site/
- name: Upload artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
- name: Publish to GitHub Pages
id: publish
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
- name: Output deployment URL
run: |
echo "🚀 Installer scripts have been published to GitHub Pages!"
echo "📍 URL: ${{ steps.publish.outputs.page_url }}"
echo ""
echo "📥 Direct download links:"
echo " Linux/macOS: ${{ steps.publish.outputs.page_url }}get.sh"
echo " Windows: ${{ steps.publish.outputs.page_url }}get.ps1"