This commit is contained in:
parent
d6a36c0450
commit
d0966cfcc7
@ -8,8 +8,18 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: [windows11]
|
runs-on: [windows11]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Clone repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
$ref = "${{ github.ref }}"
|
||||||
|
if ($ref -like 'refs/heads/*') {
|
||||||
|
$branch = $ref -replace '^refs/heads/', ''
|
||||||
|
} elseif ($ref -like 'refs/tags/*') {
|
||||||
|
$branch = $ref -replace '^refs/tags/', ''
|
||||||
|
} else {
|
||||||
|
$branch = $ref
|
||||||
|
}
|
||||||
|
git clone --depth 1 --branch=$branch https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@amass.fun/gitea/${{ gitea.repository }}.git .
|
||||||
|
git checkout ${{ github.sha }}
|
||||||
- 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