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

56 lines
1.5 KiB

10 months ago
name: HomeBuildCI
on:
push:
branches:
- '**'
- '!gh-pages'
jobs:
10 months ago
deploy:
10 months ago
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
10 months ago
- name: Get Release
uses: robinraju/release-downloader@v1.9
with:
repository: "PJ-568/568_Calc"
latest: true
fileName: "Web.zip"
- name: Release
10 months ago
run: |
mkdir ./Web
10 months ago
unzip -o $GITHUB_WORKSPACE/Web.zip -d ./Web
10 months ago
ls ./Web
10 months ago
rm $GITHUB_WORKSPACE/Web.zip
10 months ago
- 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 }}"
10 months ago
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
10 months ago
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