Skip to content

Fix .tsmb-icon-close to not rely on inline style attribute #45

Fix .tsmb-icon-close to not rely on inline style attribute

Fix .tsmb-icon-close to not rely on inline style attribute #45

Workflow file for this run

name: Publish
on:
push:
branches:
- main
workflow_dispatch:
# Set GITHUB_TOKEN
permissions:
contents: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
deploy:
# Includes firefox, chromium, and Node.js 18.
# https://github.com/actions/runner-images/blob/ubuntu22/20240403.1/images/ubuntu/Ubuntu2204-Readme.md
runs-on: ubuntu-22.04
env:
FORCE_COLOR: "1"
steps:
- uses: actions/checkout@v4
- run: npm install
- name: Generate coverage
run: npm test
- name: Deploy
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
DEPLOY_PREP: /tmp/deployment-prep
DEPLOY_BRANCH: gh-pages
run: |
mkdir -p "${DEPLOY_PREP}" && cd "${DEPLOY_PREP}"
# Clone and checkout existing branch, or initialise with a new and empty branch
git clone --depth 5 --branch "${DEPLOY_BRANCH}" "https://github.com/${GITHUB_REPOSITORY}.git" . || git init -b "${DEPLOY_BRANCH}"
# Snapshot
cp -R $GITHUB_WORKSPACE/{*.*,assets,coverage,demo,test} .
# Modifications
touch .nojekyll
# Push
git config user.name "${GITHUB_ACTOR}" && \
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \
git add . && \
git commit --allow-empty -m "Build commit ${GITHUB_SHA}" && \
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${DEPLOY_BRANCH}"