Skip to content

Commit

Permalink
New site
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed May 23, 2024
1 parent fe1776f commit bab7021
Show file tree
Hide file tree
Showing 1,707 changed files with 60,774 additions and 9,728 deletions.
113 changes: 62 additions & 51 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,64 @@
name: deploy
# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy VitePress site to Pages

on:
push:
branches:
- master
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
# using the `master` branch as the default branch.
push:
branches: [master]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
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:
name: Build and deploy gh-pages
env:
MY_SECRET : ${{secrets.COMMIT_TOKEN}}
USER_NAME : asika32764
USER_EMAIL : [email protected]
PUBLISH_DIR : .
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
- name: Install Vaseman
run: composer global require asika/vaseman ^4.0 --prefer-dist --no-suggest --no-progress
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: build
run: |
npm i yarn -g
cd .vaseman
yarn install
PATH="$PATH:$COMPOSER_VENDOR/bin/" yarn build:prod
cd ..
- name: Commit files
run: |
cd .vaseman
yarn build:prod
cd ..
rm .gitignore
cp .vaseman/build/gitignore.dist .gitignore
git init
git config --local user.name $USER_NAME
git config --local user.email $USER_EMAIL
git status
git remote set-url origin https://[email protected]/$GITHUB_REPOSITORY.git
git checkout -b gh-pages
git add --all
git commit -m "deploy to Github pages"
git push origin gh-pages -f
echo 🤘 deploy gh-pages complete.
# 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
# - uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: yarn install
- name: Build with VitePress
run: yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: .vitepress/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
258 changes: 0 additions & 258 deletions .vitepress/cache/deps/@theme_index.js

This file was deleted.

7 changes: 0 additions & 7 deletions .vitepress/cache/deps/@theme_index.js.map

This file was deleted.

Loading

0 comments on commit bab7021

Please sign in to comment.