Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
melo936 committed May 15, 2024
0 parents commit 2366d1d
Show file tree
Hide file tree
Showing 7 changed files with 2,846 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: meetrevision
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Archive and Release

on:
push:
tags:
- '*'

env:
SXSC_REPO: 'https://github.com/Atlas-OS/sxsc'
FILENAME: 'Revi-PB-${{ github.ref_name }}.apbx'

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 --depth=1 ${{ env.SXSC_REPO }} sxsc-src
- 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
Loading

0 comments on commit 2366d1d

Please sign in to comment.