diff --git a/.gitea/workflows/build_windows.yaml b/.gitea/workflows/build_windows.yaml index 05dd1ab..a68e7bf 100644 --- a/.gitea/workflows/build_windows.yaml +++ b/.gitea/workflows/build_windows.yaml @@ -5,10 +5,16 @@ jobs: build: runs-on: [windows11] steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - repository: gitea/${{ github.repository }} + - name: Clone repository + run: | + $branch = "${{ github.ref }}" -replace '^refs/heads/', '' + $url = "https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@amass.fun/gitea/amass/${{ secrets.GITEA_REPOSITORY }}.git" + git clone --depth 1 --branch=$branch $url . + 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