Skip to content

Commit

Permalink
fix: Resume link (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
MAHDTech authored Mar 29, 2024
1 parent 1afe9c1 commit 815a9c3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 32 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/wrangler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ defaults:
shell: bash

env:
HUGO_VERSION: 0.111.3

WRANGLER_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_TOKEN }}
HUGO_VERSION: 0.124.1

BRANCH_NAME_CURRENT: ${{ github.head_ref || github.ref_name }}
BRANCH_NAME_DEFAULT: ${{ github.event.repository.default_branch }}
Expand All @@ -67,7 +65,7 @@ jobs:
steps:
- id: checkout_repository
name: Checkout repository with submodules
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
Expand Down Expand Up @@ -129,32 +127,42 @@ jobs:
touch public/.nojekyll
ls -la public/
- id: publish_website_staging
name: Publish website using Wrangler (Staging)
- id: publish_worker_staging
name: Publish worker using Wrangler (Staging)
if: |
env.BRANCH_NAME_CURRENT != env.BRANCH_NAME_DEFAULT &&
steps.hugo_build_staging.outcome == 'success'
uses: cloudflare/wrangler-action@2.0.0
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_WORKERS_TOKEN }}
environment: staging
apiToken: ${{ env.WRANGLER_API_TOKEN }}
packageManager: npm
command: deploy --env staging --minify
workingDirectory: .
preCommands: |
echo "Running preCommands for staging environment"
npm --prefix workers-site install
command: deploy --env staging
postCommands: |
echo "Running postCommands for staging environment"
# Only 'trunk' branch is pushed to the Production website
- id: publish_website_production
name: Publish website using Wrangler (Production)
- id: publish_worker_production
name: Publish worker using Wrangler (Production)
if: |
env.BRANCH_NAME_CURRENT == env.BRANCH_NAME_DEFAULT &&
steps.hugo_build_production.outcome == 'success'
uses: cloudflare/wrangler-action@2.0.0
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_WORKERS_TOKEN }}
environment: production
apiToken: ${{ env.WRANGLER_API_TOKEN }}
packageManager: npm
command: deploy --env production --minify
workingDirectory: .
preCommands: |
echo "Running preCommands for production environment"
npm --prefix workers-site install
command: deploy --env production
postCommands: |
echo "Running postCommands for production environment"
##################################################
# Giphy thumbs up or down
Expand Down
4 changes: 2 additions & 2 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ params:
mainpagesubtitle:

# Main page description
mainpagedesc: Home to a collection of abandoned open source projects from the saltiest developers around.
mainpagedesc: Home to a collection of abandoned open source projects.

copyrightname: Salt Labs
copyrighturl: "https://saltlabs.tech"
Expand All @@ -458,7 +458,7 @@ params:
copyright:
name: Salt Labs
url: "https://saltlabs.tech"
prefix: "[Resume](https://mahdtech.com/resume)"
prefix: "[Resume](https://flowcv.com/resume/4ff0qgvujb)"
#suffix: Salt Labs

menu:
Expand Down
17 changes: 1 addition & 16 deletions workers-site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 815a9c3

Please sign in to comment.