diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index f8485de..9e35a7c 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -1,17 +1,22 @@ -on: [push] +name: Build +run-name: ${{ gitea.actor }} Builder +on: + push: + branches: + - main + jobs: - ls: - runs-on: ubuntu-latest - container: - image: git.php.fail/lubiana/container/php - - 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 }} - - run: ls - - run: env | sort + BuildAndDeploy: + runs-on: docker + 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 }} \ No newline at end of file