Skip to content

chore: update source repo url #29

chore: update source repo url

chore: update source repo url #29

Workflow file for this run

name: Main
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source repo
uses: actions/checkout@v2
with:
repository: hallaji/website
ref: master
token: ${{ secrets.REPO_PAT }}
- name: Checkout content repo to posts directory
uses: actions/checkout@v2
with:
ref: master
path: posts
- name: Checkout content repo to public directory
uses: actions/checkout@v2
with:
ref: master
path: public
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '18.13'
- name: Remove unnecessary files and directories
run: |
find ./posts -iname '.*' -exec rm -rf {} +
find ./public -iname '.*' -exec rm -rf {} +
find ./public -type f -iname '*.md' -exec rm -rf {} +
- name: Vercel
run: |
mkdir .vercel
export PROJECT="{\"projectId\":\"${{ secrets.VERCEL_PROJECT_ID }}\",\"orgId\":\"${{ secrets.VERCEL_ORG_ID }}\"}"
echo $PROJECT > .vercel/project.json
npm i -g vercel
vercel --confirm --prod --token=${{ secrets.VERCEL_TOKEN }}