You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
568_Calc/.github/workflows/Home_Index.yml

50 lines
1.4 KiB

name: HomeBuildCI
on:
push:
branches:
- '**'
- '!gh-pages'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # To push a branch
pull-requests: write # To create a PR from that branch
steps:
# Check
- uses: actions/checkout@v4
with:
ref: home
submodules: recursive
- name: 获取发行版
run: |
mkdir ./Web
/usr/bin/wget https://gitee.com/PJ-568/568_Calc/releases/download/v0.0.0.3/Web.zip -O ./Web.zip
unzip -o ./Web.zip -d ./Web
ls ./Web
rm ./Web.zip
- name: Generate the sitemap
id: sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://Calc.pj568.eu.org/
- name: Output sitemap stats
run: |
echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}"
echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
# Deploy
- uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: . # The folder the action should deploy.
- name: Ping Google
run: curl https://www.google.com/ping?sitemap=https://Calc.pj568.eu.org/sitemap.xml