Compare commits
No commits in common. "f3e78199083eca0355ded25b89b9ba139fc45c5d" and "195722c5709172a384d2b394fbeacb3406562095" have entirely different histories.
f3e7819908
...
195722c570
@ -1,27 +1,23 @@
|
|||||||
name: Deploy
|
name: Deploy to sewtopnotch.com
|
||||||
|
|
||||||
# Trigger the workflow on push and
|
|
||||||
# pull request events on the production branch
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
# Authenticate to the the server via ssh
|
|
||||||
# and run our deployment script
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout Repository
|
||||||
- name: Deploy to server
|
uses: actions/checkout@v4
|
||||||
uses: appleboy/ssh-action@master
|
|
||||||
with:
|
- name: Set Permissions
|
||||||
host: ${{ secrets.HOST }}
|
run: |
|
||||||
username: ${{ secrets.USERNAME }}
|
sudo chown -R www-data:www-data .
|
||||||
port: ${{ secrets.PORT }}
|
sudo chmod -R 755 .
|
||||||
key: ${{ secrets.SSHKEY }}
|
|
||||||
script: "cd /var/www/sewtopnotch.com && ./.scripts/deploy.sh"
|
- name: Move to Deployment Directory
|
||||||
|
run: |
|
||||||
|
sudo rm -rf /var/www/sewtopnotch.com
|
||||||
|
sudo mv $(pwd) /var/www/sewtopnotch.com
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -108,4 +108,3 @@ fabric.properties
|
|||||||
.directory
|
.directory
|
||||||
public
|
public
|
||||||
_ide_helper.php
|
_ide_helper.php
|
||||||
public/build
|
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
echo "Deployment started ..."
|
|
||||||
|
|
||||||
# Enter maintenance mode or return true
|
|
||||||
# if already is in maintenance mode
|
|
||||||
(php artisan down) || true
|
|
||||||
|
|
||||||
# Pull the latest version of the app from main branch
|
|
||||||
git pull origin main
|
|
||||||
|
|
||||||
# Install composer dependencies
|
|
||||||
composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader
|
|
||||||
|
|
||||||
# Clear the old cache
|
|
||||||
php artisan clear-compiled
|
|
||||||
|
|
||||||
# Recreate cache
|
|
||||||
php artisan optimize
|
|
||||||
|
|
||||||
# Npm stuff (ci will fail when lockfile modified)
|
|
||||||
npm ci
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
# Run database migrations
|
|
||||||
php artisan migrate --force
|
|
||||||
|
|
||||||
# Exit maintenance mode
|
|
||||||
php artisan up
|
|
||||||
|
|
||||||
echo "Deployment finished!"
|
|
9
public/build/assets/app-Dgcz2HWl.css
Normal file
9
public/build/assets/app-Dgcz2HWl.css
Normal file
File diff suppressed because one or more lines are too long
10
public/build/assets/app-L09tcoah.js
Normal file
10
public/build/assets/app-L09tcoah.js
Normal file
File diff suppressed because one or more lines are too long
BIN
public/build/assets/bootstrap-icons-BOrJxbIo.woff
Normal file
BIN
public/build/assets/bootstrap-icons-BOrJxbIo.woff
Normal file
Binary file not shown.
BIN
public/build/assets/bootstrap-icons-BtvjY1KL.woff2
Normal file
BIN
public/build/assets/bootstrap-icons-BtvjY1KL.woff2
Normal file
Binary file not shown.
21
public/build/manifest.json
Normal file
21
public/build/manifest.json
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff": {
|
||||||
|
"file": "assets/bootstrap-icons-BOrJxbIo.woff",
|
||||||
|
"src": "node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff"
|
||||||
|
},
|
||||||
|
"node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff2": {
|
||||||
|
"file": "assets/bootstrap-icons-BtvjY1KL.woff2",
|
||||||
|
"src": "node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff2"
|
||||||
|
},
|
||||||
|
"resources/js/app.js": {
|
||||||
|
"file": "assets/app-L09tcoah.js",
|
||||||
|
"name": "app",
|
||||||
|
"src": "resources/js/app.js",
|
||||||
|
"isEntry": true
|
||||||
|
},
|
||||||
|
"resources/sass/app.scss": {
|
||||||
|
"file": "assets/app-Dgcz2HWl.css",
|
||||||
|
"src": "resources/sass/app.scss",
|
||||||
|
"isEntry": true
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user