generated from CubeCraft-Creations/Tracehound
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 36db9477fb | |||
| be9e170484 | |||
| ac902b48c9 | |||
| d475960ce7 | |||
| f03fd84514 | |||
| 54ea265d11 | |||
| f046695b5e | |||
| d0f76ea4a9 | |||
| 4f817887ab |
+10
-16
@@ -8,7 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
lint-and-typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: go-react
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
|
||||
test:
|
||||
needs: lint-and-typecheck
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: go-react
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
|
||||
build:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: go-react
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -42,24 +42,18 @@ jobs:
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
- name: Verify build output
|
||||
run: |
|
||||
du -sh dist/
|
||||
echo "Build successful"
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: go-react
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||
environment: production
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
- name: Deploy static files
|
||||
- name: Deploy placeholder
|
||||
run: |
|
||||
echo "Deploying to production..."
|
||||
echo "Deploy target: /var/www/remote-rig/"
|
||||
echo "Placeholder — configure deploy target before merging to main"
|
||||
echo "Configure deploy command before merging to main"
|
||||
|
||||
Reference in New Issue
Block a user