Skip to content

remove test resources from imports #152

remove test resources from imports

remove test resources from imports #152

Workflow file for this run

# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: dynamically set CURR_DATE environment variable
run: echo "CURR_DATE=$(date +%Y%m%d-%H%M%S)" >> $GITHUB_ENV
- name: Replace string in HTML
run: |
target_string="###CURR-DATE###" # Replace this with your placeholder
html_file="site/index.html" # Specify the HTML file path
current_date="$(date +%Y%m%d-%H%M%S)"
sed -i "s/${target_string}/${current_date}/g" $html_file
sed -i "s/###GIT-SHA###/${GITHUB_SHA}/g" $html_file
# - run: npm i markdown-to-html-cli -g
# - run: markdown-to-html --output coverage/index.html
# - run: markdown-to-html --source src/README.md --output coverage/index.html
# or
# - name: Converts Markdown to HTML
# uses: jaywcjlove/markdown-to-html-cli@main
# with:
# source: setup/README.md
# output: site/setups.html
# github-corners: https://github.com/jaywcjlove/markdown-to-html-cli
# favicon: data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌐</text></svg>
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4