Skip to content

Improve README clarity and structure #3

Improve README clarity and structure

Improve README clarity and structure #3

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Version assets
run: |
COMMIT_HASH="${GITHUB_SHA::7}"
sed "s/<%VERSION%>/$COMMIT_HASH/g" index.html > index.tmp.html
mv index.tmp.html index.html
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "."
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4