Skip to content

chore: update installer scripts to version 1.2.1 #3

chore: update installer scripts to version 1.2.1

chore: update installer scripts to version 1.2.1 #3

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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- 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"