21 lines
690 B
YAML
21 lines
690 B
YAML
name: Windows CI
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [windows11]
|
|
steps:
|
|
- name: Clone repository
|
|
run: |
|
|
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
|
|
git clone --depth 1 --branch=$branch https://$env:GIT_USERNAME:$env:GIT_PASSWORD@amass.fun/gitea/amass/${{ env.GITEA_REPOSITORY }}.git .
|
|
git checkout ${{ github.sha }}
|
|
env:
|
|
GITEA_REPOSITORY: ${{ secrets.GITEA_REPOSITORY }}
|
|
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
|
|
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}
|
|
- name: Build and deploy
|
|
run: |
|
|
resources/build.ps1 build
|
|
resources/build.ps1 deploy
|
|
resources/build.ps1 changelog |