fix ci.
This commit is contained in:
parent
f0cbe30768
commit
e3d537951c
@ -5,16 +5,10 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: [windows11]
|
runs-on: [windows11]
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Checkout code
|
||||||
run: |
|
uses: actions/checkout@v4
|
||||||
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
|
with:
|
||||||
echo "git clone --depth 1 --branch=$branch https://$env:GIT_USERNAME:$env:GIT_PASSWORD@amass.fun/gitea/amass/$env:GITEA_REPOSITORY.git ."
|
repository: gitea/${{ github.repository }}
|
||||||
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
|
- name: Build and deploy
|
||||||
run: |
|
run: |
|
||||||
resources/build.ps1 build
|
resources/build.ps1 build
|
||||||
|
Loading…
Reference in New Issue
Block a user