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:
|
jobs:
|
||||||
lint-and-typecheck:
|
lint-and-typecheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: go-react
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
needs: lint-and-typecheck
|
needs: lint-and-typecheck
|
||||||
runs-on: ubuntu-latest
|
runs-on: go-react
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: go-react
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -42,24 +42,18 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- name: Upload build artifacts
|
- name: Verify build output
|
||||||
uses: actions/upload-artifact@v4
|
run: |
|
||||||
with:
|
du -sh dist/
|
||||||
name: dist
|
echo "Build successful"
|
||||||
path: dist/
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: go-react
|
||||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||||
environment: production
|
environment: production
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- name: Deploy placeholder
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: dist/
|
|
||||||
- name: Deploy static files
|
|
||||||
run: |
|
run: |
|
||||||
echo "Deploying to production..."
|
|
||||||
echo "Deploy target: /var/www/remote-rig/"
|
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