Skip to content

Commit 2af66c4

Browse files
committed
Deploy script
1 parent cf877d2 commit 2af66c4

File tree

2 files changed

+59
-3
lines changed

2 files changed

+59
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# https://vitejs.dev/guide/static-deploy.html
2+
3+
name: Build and deploy Vite website to Pages
4+
5+
on:
6+
# Runs on pushes targeting the default branch
7+
push:
8+
branches: ['master']
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# Allow one concurrent deployment
20+
concurrency:
21+
group: 'pages'
22+
cancel-in-progress: true
23+
24+
jobs:
25+
# Build job
26+
build:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v3
31+
- name: Set up Node
32+
uses: actions/setup-node@v3
33+
with:
34+
node-version: 18
35+
cache: 'npm'
36+
- name: Install dependencies
37+
run: npm install
38+
- name: Build
39+
run: npm run build
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v3
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v1
44+
with:
45+
# Upload dist repository
46+
path: './dist'
47+
48+
# Deployment job
49+
deploy:
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
runs-on: ubuntu-latest
54+
needs: build
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v1

src/views/Home.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@
8989
<v-card variant="tonal">
9090
<v-card-title>Documentation</v-card-title>
9191
<v-card-text class="text-body-2">
92-
<v-btn href="http://scapy.readthedocs.io/">
93-
Official Documentation
94-
</v-btn>
92+
The followings are good heads
9593
</v-card-text>
9694
</v-card>
9795
</v-col>

0 commit comments

Comments
 (0)