2024-04-26 12:31:10 +00:00
|
|
|
name: Build
|
|
|
|
run-name: ${{ gitea.actor }} Builder
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
2023-10-06 21:31:38 +00:00
|
|
|
jobs:
|
2024-04-26 12:31:10 +00:00
|
|
|
BuildAndDeploy:
|
2024-04-26 12:31:29 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-04-26 12:31:10 +00:00
|
|
|
container:
|
|
|
|
image: git.php.fail/lubiana/container/hugogit
|
|
|
|
steps:
|
|
|
|
- name: Manually checkout
|
|
|
|
env:
|
|
|
|
REPO: '${{ github.repository }}'
|
|
|
|
TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
|
|
|
GIT_SERVER: 'git.php.fail'
|
|
|
|
run: |
|
|
|
|
git clone --branch $GITHUB_REF_NAME https://${TOKEN}@${GIT_SERVER}${REPO}.git .
|
|
|
|
git fetch
|
|
|
|
git checkout ${{ github.head_ref }}
|