Skip to content

Commit

Permalink
removed old github script
Browse files Browse the repository at this point in the history
  • Loading branch information
paolini committed May 18, 2024
1 parent 58d390e commit 1e85d5d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 62 deletions.
46 changes: 41 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,49 @@
name: Restart Monitor
name: Deploy Static Content to Pages

# see https://vitejs.dev/guide/static-deploy

on:
push:
branches:
- disabled
branches: ['main']
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
production:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 21
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build -- --base=/dm-monitor/
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

- name: Setup SSH
run: |
mkdir -p ~/.ssh/
Expand All @@ -18,4 +54,4 @@ jobs:
ssh-keyscan -H ${{ secrets.HOSTNAME }} >> ~/.ssh/known_hosts
- name: restart server
run: |
ssh radxa@${{ secrets.HOSTNAME }} ./start-schermo.sh
echo ssh radxa@${{ secrets.HOSTNAME }} ./start-schermo.sh
57 changes: 0 additions & 57 deletions .github/workflows/vite.yml

This file was deleted.

0 comments on commit 1e85d5d

Please sign in to comment.