diff --git a/.github/workflows/articles.yml b/.github/workflows/articles.yml deleted file mode 100644 index 96b1d2f..0000000 --- a/.github/workflows/articles.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Update Content - -on: - pull_request: - types: - - closed - paths: - - 'public/data/**' - branches: - - content - -jobs: - update-content: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - name: Checkout content branch - uses: actions/checkout@v2 - with: - ref: content - - - name: Generate indexes - run: | - cd public/data - for dir in */; do - if [ -d "$dir" ]; then - cd "$dir" - rm -f index.json - if find . -maxdepth 1 -name "*.md" | grep -q .; then - find . -maxdepth 1 -name "*.md" -exec basename {} \; | \ - jq -R -s -c 'split("\n")[:-1]' > index.json - fi - cd .. - fi - done - - - name: Checkout gh-pages branch - uses: actions/checkout@v2 - with: - ref: gh-pages - path: gh-pages - - - name: Update gh-pages - run: | - cp -r public/data/* gh-pages/data/ - cd gh-pages - git config user.name github-actions - git config user.email github-actions@github.com - git add data/ - git commit -m "Update content from content branch" || echo "No changes" - git push origin gh-pages - - - name: Create PR to development - uses: peter-evans/create-pull-request@v5 - with: - branch: content-sync - base: development - title: 'Sync content updates to development' - body: 'Automated PR to sync content updates from content branch' - commit-message: 'Sync content updates' - delete-branch: true \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3af2601..5b9d22f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,9 +4,16 @@ on: push: branches: - master # or the branch you want to deploy from + pull_request: + types: + - closed + branches: + - master jobs: build: + # Only run if PR was merged + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: @@ -16,7 +23,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '18' - name: Install dependencies run: npm install diff --git a/public/data/articles/flight.md b/public/data/articles/flight.md index b35aaed..c0174bc 100644 --- a/public/data/articles/flight.md +++ b/public/data/articles/flight.md @@ -8,7 +8,7 @@ categories: AI, Travel # I'm on a flight, keep me entertained... ## Introduction -I'm not a talkative person, particularly when it comes to strangers on flights. In fact, I look forward to the me-time at the airport and plane to just chill, self-reflect, or get immersed in an audio book. There's something relaxing about the dulled humming of noise-cancelled jet engines. +I'm not a talkative person, particularly when it involves strangers on flights. In fact, I look forward to the me-time at the airport and plane to just chill, self-reflect, or get immersed in an audio book. There's something relaxing about the dulled humming of noise-cancelled jet engines. On a recent 2-hour flight though, I had a very different experience. After many frustrating failed attempts to squeeze enough resources out of my poor "manager spec" MacBook Air, I had just managed to get llama3.2:1B downloaded using free Airport Wi-Fi ahead of the flight.