gamesshop/.forgejo/workflows/deploy.yml

35 lines
992 B
YAML
Raw Normal View History

2024-11-05 19:06:35 +00:00
on:
push:
branches:
- 'master'
jobs:
build:
2024-11-05 19:09:26 +00:00
runs-on: kiljho
2024-11-05 19:06:35 +00:00
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: .