Skip to content

Publish to GitHub Pages #4145

Publish to GitHub Pages

Publish to GitHub Pages #4145

Workflow file for this run

name: Publish to GitHub Pages
on:
push:
workflow_dispatch:
schedule:
- cron: 11 4 * * *
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate Website
run: |
mkdir public
cp style.css public/style.css
cp feather.min.js public/feather.min.js
go run main.go -t ${{ secrets.GITHUB_TOKEN }} -o public/index.html
cp background.min.svg public/background.svg
- name: Create website archive for debugging
run: tar --use-compress-program zstd -cf your-first-julia-pr.tar.zst public/
- name: Upload website archive for debugging
uses: actions/upload-artifact@v2
with:
name: website
path: your-first-julia-pr.tar.zst
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: crazy-max/ghaction-github-pages@d3b77e62017a60cdf55ceffc6c263f1f357f4c1b # 2.1.2
with:
target_branch: gh-pages
build_dir: public
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}