Merge pull request 'Adds deploy action' (#3) from develop into master
Some checks failed
/ build (push) Failing after 39s
Some checks failed
/ build (push) Failing after 39s
Reviewed-on: #3
This commit is contained in:
commit
a1b24cfef5
1 changed files with 35 additions and 0 deletions
35
.forgejo/workflows/deploy.yml
Normal file
35
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
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: .
|
Loading…
Reference in a new issue