mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-15 12:47:40 +00:00
39 lines
900 B
YAML
39 lines
900 B
YAML
name: Run generate.sh
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y aria2 nsis
|
|
|
|
- name: Run generate.sh
|
|
run: |
|
|
chmod +x ./generate_all.sh
|
|
./generate_all.sh
|
|
|
|
- name: Get build date
|
|
id: date
|
|
run: echo "date=$(date +'%Y.%m.%d')" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create GitHub Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: v${{ steps.date.outputs.date }}
|
|
name: Release ${{ steps.date.outputs.date }}
|
|
files: MSVC_Offline_Setup_*.exe
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|