Initial commit

This commit is contained in:
2026-03-01 18:20:33 +00:00
commit 1abf01a9ee
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
name: Deploy Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set variables
id: vars
run: |
echo "USERNAME=${GITHUB_REPOSITORY_OWNER}" >> $GITHUB_OUTPUT
echo "REPO=${GITHUB_REPOSITORY#*/}" >> $GITHUB_OUTPUT
- name: Deploy to pages directory
run: |
USERNAME=${{ steps.vars.outputs.USERNAME }}
REPO=${{ steps.vars.outputs.REPO }}
TARGET=/data/pages/$USERNAME/$REPO
mkdir -p $TARGET
rm -rf $TARGET/*
cp -r ./* $TARGET/

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# web_template
静态网站创建模板