remove unused styles #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
name: build posts org files and publish | |
steps: | |
- uses: purcell/setup-emacs@master | |
with: | |
version: 27.2 | |
- uses: actions/checkout@v3 | |
name: website_repo | |
with: | |
path: website | |
- name: compile org files | |
run: | | |
pushd website | |
emacs -Q --script org_publish_posts.el | |
popd | |
- name: Create website.zip and upload to netlify | |
run: | | |
pushd website/site | |
# mv notes/theindex.html notes/index.html ;; TODO: merge existing posts/index.html | |
zip -r website.zip . | |
curl -H "Content-Type: application/zip" \ | |
-H "Authorization: Bearer ${{ secrets.netlify_token }}" \ | |
--data-binary "@website.zip" \ | |
https://api.netlify.com/api/v1/sites/siddhantcodes.netlify.app/deploys | |
popd | |