Skip to content

Commit

Permalink
new automated deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcrypto committed Nov 30, 2024
1 parent 96f0fdf commit ca5c171
Show file tree
Hide file tree
Showing 35 changed files with 25 additions and 392 deletions.
36 changes: 25 additions & 11 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,57 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Repositories with GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Fetch the list of repos
curl -s -H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/user/repos?per_page=100&type=public" > repos.json
# Filter repos with homepage
jq '[.[] | select(.has_pages == true) | {name: .name, url: .html_url, pages_url: .homepage}]' repos.json > pages.json
- name: Generate index.html
run: |
echo "<!DOCTYPE html>" > index.html
echo "<html><head><title>Open Source | 0xcrypto</title></head><body>" >> index.html
echo "<h1>Open Source Projects</h1><ul>" >> index.html
# Generate HTML for each repo
jq -r '.[] | "<li><a href=\"\(.pages_url // .url)\">\(.name)</a></li>"' pages.json >> index.html
echo "</ul></body></html>" >> index.html
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
path: 'index.html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

21 changes: 0 additions & 21 deletions cv/index.html

This file was deleted.

97 changes: 0 additions & 97 deletions index.html

This file was deleted.

Binary file removed lib/fonts/05b618077343fbbd92b7.ttf
Binary file not shown.
Binary file removed lib/fonts/2d5198822ab091ce4305.woff2
Binary file not shown.
Binary file removed lib/fonts/454577c22304619db035.ttf
Binary file not shown.
Binary file removed lib/fonts/4bb6ac751d1c5478ff3a.woff2
Binary file not shown.
Binary file removed lib/fonts/52ac8f3034507f1d9e53.ttf
Binary file not shown.
Binary file removed lib/fonts/535a6cf662596b3bd6a6.woff2
Binary file not shown.
Binary file removed lib/fonts/70cc7ff27245e82ad414.ttf
Binary file not shown.
Binary file removed lib/fonts/72505e6a122c6acd5471.woff2
Binary file not shown.
Binary file removed lib/fonts/94f2f163d4b698242fef.otf
Binary file not shown.
Binary file removed lib/fonts/b5f0f109bc88052d4000.woff2
Binary file not shown.
Binary file removed lib/fonts/c8ba52b05a9ef10f4758.woff2
Binary file not shown.
Binary file removed lib/fonts/cb10ffd7684cd9836a05.woff2
Binary file not shown.
Binary file removed lib/fonts/cbe0ae49c52c920fd563.woff2
Binary file not shown.
1 change: 0 additions & 1 deletion lib/html/file-tree.html

This file was deleted.

2 changes: 0 additions & 2 deletions lib/media/874d8b8e340f75575caa.svg

This file was deleted.

Binary file removed lib/media/favicon.png
Binary file not shown.
Loading

0 comments on commit ca5c171

Please sign in to comment.