forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
363 changed files
with
113,134 additions
and
4,597 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
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,52 @@ | ||
name: Deploy to Firebase Hosting | ||
|
||
on: | ||
# push: | ||
# branches: | ||
# - cloudflare # Change this to your desired branch | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.2" | ||
bundler-cache: true | ||
- name: Update _config.yml ⚙️ | ||
uses: fjogeleit/yaml-update-action@main | ||
with: | ||
commitChange: false | ||
valueFile: "_config.yml" | ||
propertyPath: "giscus.repo" | ||
value: ${{ github.repository }} | ||
- name: Install and Build 🔧 | ||
run: | | ||
pip3 install --upgrade jupyter | ||
export JEKYLL_ENV=production | ||
bundle exec jekyll build --lsi | ||
- name: Purge unused CSS 🧹 | ||
run: | | ||
npm install -g purgecss | ||
purgecss -c purgecss.config.js | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install Firebase CLI | ||
run: npm install -g firebase-tools | ||
|
||
|
||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ALIREZA_ACCA7 }}' | ||
channelId: live | ||
projectId: alireza-acca7 |
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,32 @@ | ||
name: Build Notion Posts | ||
|
||
on: | ||
# schedule: | ||
# - cron: "*/30 * * * *" | ||
|
||
push: | ||
branches: [ "npm-notion" ] | ||
# pull_request: | ||
# branches: [ "note" ] | ||
|
||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build_posts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
- name: Run a multi-line script | ||
run: | | ||
touch .env | ||
echo 'NOTION_TOKEN=${{ secrets.NOTION_TOKEN }}' >> .env | ||
echo 'NOTION_DATABASE_ID=${{ secrets.NOTION_DATABASE_ID }}' >> .env | ||
yarn | ||
yarn start | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: build pages from notion |
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,25 @@ | ||
name: deploy_to_firebase_hosting | ||
|
||
on: | ||
push: | ||
branches: | ||
- "cf-pages" | ||
workflow_dispatch: | ||
# tags: | ||
# - release-production-* | ||
|
||
jobs: | ||
deploy_to_firebase_hosting: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@master | ||
|
||
- name: Deploy to Firebase | ||
uses: w9jds/firebase-action@master | ||
with: | ||
args: deploy --only hosting | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |
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 |
---|---|---|
|
@@ -10,4 +10,6 @@ Gemfile.lock | |
assets/libs/ | ||
node_modules/ | ||
vendor | ||
.idea | ||
notion.js | ||
package.json | ||
.idea |
Oops, something went wrong.