2024-10-02 14:44:51 +08:00
|
|
|
name: Windows CI
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: [windows11]
|
|
|
|
steps:
|
2024-10-16 01:24:36 +08:00
|
|
|
- name: Clone repository
|
|
|
|
run: |
|
|
|
|
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
|
2024-10-16 01:27:18 +08:00
|
|
|
$url = "https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@amass.fun/gitea/${{ gitea.repository }}.git"
|
2024-10-16 01:24:36 +08:00
|
|
|
git clone --depth 1 --branch=$branch $url .
|
|
|
|
git checkout ${{ github.sha }}
|
2024-10-02 14:47:10 +08:00
|
|
|
- name: Build and deploy
|
2024-10-02 14:44:51 +08:00
|
|
|
run: |
|
|
|
|
resources/build.ps1 build
|
|
|
|
resources/build.ps1 deploy
|
2024-10-02 17:01:21 +08:00
|
|
|
resources/build.ps1 changelog
|