Skip to content

feat: lc 373 greedy using heap and sorted properties #49

feat: lc 373 greedy using heap and sorted properties

feat: lc 373 greedy using heap and sorted properties #49

name: Build and deploy
on:
push:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create output directory and copy static files
run: |
mkdir build
cp -r src build/src
cp -r leetcode build/leetcode
- name: Build html
uses: docker://pandoc/core:3-ubuntu
with:
args: >-
--from org --to html
--standalone
--toc --toc-depth 2
-o build/index.html
README.org
- name: Upload github-pages artifacts
uses: actions/upload-pages-artifact@v1
with:
name: github-pages
path: build
# Deploy Pages via Github action instead of classic branch deployment
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
with:
artifact_name: github-pages