fix ci.
Some checks failed
Build Applications / PullDocker (push) Successful in 4s
Windows CI / build (push) Failing after 1s
Build Applications / Build (push) Successful in 2m26s

This commit is contained in:
amass 2024-10-16 01:19:25 +08:00
parent f0cbe30768
commit e3d537951c

View File

@ -5,16 +5,10 @@ jobs:
build:
runs-on: [windows11]
steps:
- name: Clone repository
run: |
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
echo "git clone --depth 1 --branch=$branch https://$env:GIT_USERNAME:$env:GIT_PASSWORD@amass.fun/gitea/amass/$env:GITEA_REPOSITORY.git ."
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: Checkout code
uses: actions/checkout@v4
with:
repository: gitea/${{ github.repository }}
- name: Build and deploy
run: |
resources/build.ps1 build