Skip to content

Replace "open source" wording with "open code" and "source-available" #22

Replace "open source" wording with "open code" and "source-available"

Replace "open source" wording with "open code" and "source-available" #22

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Ruby Setup
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build site
run: bundle exec middleman build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'build'
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Ping IndexNow
run: |
for url in \
"https://csa-admin.org/" \
"https://csa-admin.org/acp/" \
"https://csa-admin.org/solawi/"
do
curl -s -o /dev/null -w "IndexNow %{url_effective} → HTTP %{http_code}\n" \
"https://api.indexnow.org/indexnow?url=${url}&key=8f940d3ccbab4035acab547df3432ac0"
done