-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2832dbd
Showing
164 changed files
with
57,587 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: Deploy Repository | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: [$default-branch] | ||
|
||
# Runs dayly at 00:00 UTC | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
updated: ${{ steps.resolve-repository.outputs.updated }} | ||
steps: | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Checkout repository | ||
id: checkout-repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Restore cache | ||
id: restore-cache | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: |- | ||
cache/ | ||
_site/libraries.json.sha512 | ||
blacklist.json | ||
key: ${{ runner.os }}-state | ||
restore-keys: | | ||
${{ runner.os }}-state | ||
- name: Resolve repository | ||
id: resolve-repository | ||
env: | ||
GH_USER: ${{secrets.GH_APP_ID}} | ||
GH_PASS: ${{secrets.GH_APP_TOKEN}} | ||
run: python3 tasks crawl | ||
|
||
- name: Save cache | ||
id: save-cache | ||
uses: actions/cache/save@v3 | ||
if: always() | ||
with: | ||
path: |- | ||
cache/ | ||
_site/libraries.json.sha512 | ||
blacklist.json | ||
key: ${{ runner.os }}-state-${{ hashFiles('cache/*') }} | ||
|
||
- name: Setup pages | ||
id: setup-pages | ||
if: steps.resolve-repository.outputs.updated == true | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: Upload pages | ||
id: upload-pages | ||
if: steps.resolve-repository.outputs.updated == true | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: _site/ | ||
|
||
# Deploy job | ||
deploy: | ||
# Add a dependency to the build job | ||
needs: build | ||
if: needs.build.outputs.updated == true | ||
|
||
# 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 pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# python cache | ||
__pycache__/ | ||
*.pyc | ||
|
||
.sublime/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Package Control Libraries</title> | ||
</head> | ||
<body> | ||
<h1>Hello World</h1> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.