From d0c56d5d769d54da30bea5cff3dcedbc28e7c5fd Mon Sep 17 00:00:00 2001 From: Michel Date: Tue, 5 Nov 2024 20:25:44 +0100 Subject: [PATCH] Test self-hosted --- .forgejo/workflows/deploy.yml | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 2371f90..88a14aa 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -4,32 +4,9 @@ on: - 'master' jobs: build: - runs-on: kiljho + runs-on: + - kiljho + - self-hosted steps: - - name: Checkout - env: - REPO: '${{ github.repository }}' - TOKEN: '${{ secrets.GITHUB_TOKEN }}' - BRANCH: '${{ env.GITHUB_REF_NAME }}' - 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 }} - - name: Install PHP Dependencies - run: | - docker run --rm --interactive --tty \ - --volume $PWD:/app \ - composer \ - cd /app && composer install - - name: Build NPM folder - run: | - docker run --rm --interactive --tty \ - --volume $PWD:/app \ - node \ - cd /app && npm install && npm run build - - name: Upload Artifact - uses: actions/upload-artifact@v3 - with: - name: /app - path: . \ No newline at end of file + - name: Test direct issue + run: /home/michel/hello.sh \ No newline at end of file