parent
e3d537951c
commit
4788f1c04d
@ -5,10 +5,16 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: [windows11]
|
runs-on: [windows11]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Clone repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
|
||||||
repository: gitea/${{ github.repository }}
|
$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
|
- name: Build and deploy
|
||||||
run: |
|
run: |
|
||||||
resources/build.ps1 build
|
resources/build.ps1 build
|
||||||
|
Loading…
Reference in New Issue
Block a user