parent
35ed9487b5
commit
d0c56d5d76
1 changed files with 5 additions and 28 deletions
|
@ -4,32 +4,9 @@ on:
|
||||||
- 'master'
|
- 'master'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: kiljho
|
runs-on:
|
||||||
|
- kiljho
|
||||||
|
- self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Test direct issue
|
||||||
env:
|
run: /home/michel/hello.sh
|
||||||
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: .
|
|
Loading…
Reference in a new issue