SmartLockerTools/.gitea/workflows/build_windows.yaml
luocai a6541c6a52
All checks were successful
Build Applications / PullDocker (push) Successful in 3s
Build Applications / Build (push) Successful in 2m16s
Windows CI / build (push) Successful in 4m41s
Deploy Release / Build (push) Successful in 2m19s
Release tag / build (push) Successful in 4m40s
make gitea actions more reasonable.
2024-11-06 10:01:18 +08:00

35 lines
988 B
YAML

name: Windows CI
on:
push:
branches:
- '**'
tags-ignore:
- 'v*'
jobs:
build:
runs-on: [windows11]
steps:
- name: Clone repository
run: |
$ref = "${{ github.ref }}"
if ($ref -like 'refs/heads/*') {
$branch = $ref -replace '^refs/heads/', ''
} elseif ($ref -like 'refs/tags/*') {
$branch = $ref -replace '^refs/tags/', ''
} else {
$branch = $ref
}
git clone --depth 1 --branch=$branch https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@amass.fun/gitea/${{ gitea.repository }}.git .
git checkout ${{ github.sha }}
- name: Build and deploy
run: |
resources/build.ps1 build
resources/build.ps1 deploy
resources/build.ps1 changelog
- name: Upload Gitea Release
uses: akkuman/gitea-release-action@v1
with:
body_path: build/CHANGELOG.txt
files: |-
build/SmartLockerTools_v*.zip