Add note for torrent to gdrive post #23
Workflow file for this run
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
name: Update Post Content | |
on: | |
pull_request: | |
paths: ["content/**"] | |
types: [closed] | |
jobs: | |
deploy: | |
if: github.event.pull_request.merged && contains(github.event.pull_request.labels.*.name, 'update-content') | |
name: Update and deploy content | |
runs-on: ubuntu-24.04 | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
GH_USERNAME: ${{ secrets.GH_USERNAME }} | |
GH_REPO: ${{ secrets.GH_REPO }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
CONTENT_DIR: ${{ secrets.CONTENT_DIR }} | |
SITE_URL: ${{ secrets.SITE_URL }} | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
steps: | |
- name: Fetch all tags | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Checkout to latest tags | |
run: git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) | |
- name: Get latest change in content directory from master branch | |
run: git checkout master content/ | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
with: | |
path: ./node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node_modules- | |
- name: Cache netlify | |
uses: actions/cache@v4 | |
with: | |
path: ./.netlify | |
key: ${{ runner.os }}-netlify-${{ hashFiles('**/netlify.toml') }} | |
restore-keys: | | |
${{ runner.os }}-netlify- | |
- name: Install NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
cache: "yarn" | |
- name: Install netlify cli | |
run: yarn global --ignore-optional add netlify-cli | |
- name: Install dependencies | |
run: yarn | |
- name: Build and Deploy to netlify | |
run: netlify deploy --prod --build --context production |