Skip to content

feat: Implement compression in share URL (#34) #5

feat: Implement compression in share URL (#34)

feat: Implement compression in share URL (#34) #5

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
gh-pages-deploy:
name: Deploying to Github Pages
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Set Creds
run: git config user.name "ci_bot" && git config user.email "[email protected]"
- name: Deploy
run: |
git checkout --orphan gh-pages
touch .nojekyll
git --work-tree . add --all
git --work-tree . commit -m "gh-pages"
git push origin HEAD:gh-pages --force
git checkout -f master
git branch -D gh-pages