Skip to content

Commit

Permalink
chore: 🎉 setup project
Browse files Browse the repository at this point in the history
  • Loading branch information
DerZade committed Apr 30, 2024
0 parents commit 5e0315c
Show file tree
Hide file tree
Showing 8 changed files with 1,271 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy to GitHub Pages

on:
push:
branches: [main]
workflow_dispatch:

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

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Install dependencies
run: npm ci

- name: Build with VitePress
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.html
6 changes: 6 additions & 0 deletions links.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"index": "https://github.com/arma-events/ln",
"youtube": "https://www.youtube.com/@arma.events",
"discord": "https://discord.gg/b2aABzh8xJ",
"twitter": "https://x.com/arma_events"
}
Loading

0 comments on commit 5e0315c

Please sign in to comment.