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.
56 lines
1.5 KiB
56 lines
1.5 KiB
name: HomeBuildCI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
- '!gh-pages'
|
|
|
|
jobs:
|
|
deploy:
|
|
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: Get Release
|
|
uses: robinraju/release-downloader@v1.9
|
|
with:
|
|
repository: "PJ-568/568_Calc"
|
|
latest: true
|
|
fileName: "Web.zip"
|
|
|
|
- name: Release
|
|
run: |
|
|
mkdir ./Web
|
|
unzip -o $GITHUB_WORKSPACE/Web.zip -d ./Web
|
|
ls -R ./Web
|
|
rm $GITHUB_WORKSPACE/Web.zip
|
|
|
|
- name: Generate the sitemap
|
|
id: sitemap
|
|
uses: cicirello/generate-sitemap@v1
|
|
with:
|
|
base-url-path: https://Calc.pj568.sbs/
|
|
|
|
- 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 }}"
|
|
|
|
- name: 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.sbs/sitemap.xml
|