Skip to content

chore: update git clone command in main.yml workflow #9

chore: update git clone command in main.yml workflow

chore: update git clone command in main.yml workflow #9

Workflow file for this run

name: Archive and Release
on:
push:
tags:
- '*'
env:
SXSC_REPO: 'https://github.com/Atlas-OS/sxsc'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# Credits to echnobas, Atlas and all the contributors.
- name: Git clone sxsc
run: |
git clone ${{ env.SXSC_REPO }} sxsc-src
cd sxsc-src
git checkout fd384df752dee77b11f687ec2f2ee667658605d7
- name: Build cab
run: |
pip install -r requirements.txt | Out-Null
New-Item -ItemType Directory -Force -Path "..\release" | Out-Null
foreach ($file in Get-ChildItem -Path "..\" -Recurse -File -Filter "*.yaml") {
Copy-Item -Path $file.FullName -Destination "cfg.yaml" -Force | Out-Null
(Get-Content cfg.yaml) -replace 'version: 1.0.0.0', "version: ${{ github.ref_name }}" | Set-Content cfg.yaml -Force
python sxsc.py
if ($LASTEXITCODE -ne 0) { exit 1 }
.\build.bat
Move-Item -Path *.cab -Destination "..\release\" -Force | Out-Null
.\clean.bat
}
working-directory: sxsc-src
#
- name: Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: release/*.cab
tag: ${{ github.ref }}
overwrite: true
file_glob: true