Update 1.13 release status (#261) #16
This file contains hidden or 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: Publish | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'en/**' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| env: | |
| OBSIDIAN_AUTH_TOKEN: ${{ secrets.OB_AUTH_TOKEN }} | |
| OB_SITE_ID: caa27d6312fe5c26ebc657cc609543be | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install ob CLI | |
| run: npm install -g obsidian-headless@0.0.12 | |
| - name: Set up ob auth | |
| run: | | |
| node -e " | |
| const os = require('os'), path = require('path'), fs = require('fs'); | |
| const dir = os.platform() === 'linux' | |
| ? path.join(process.env.XDG_CONFIG_HOME || path.join(os.homedir(), '.config'), 'obsidian-headless') | |
| : path.join(os.homedir(), '.obsidian-headless'); | |
| fs.mkdirSync(dir, { recursive: true }); | |
| fs.writeFileSync(path.join(dir, 'auth_token'), process.env.OBSIDIAN_AUTH_TOKEN); | |
| " | |
| - name: Link publish site | |
| run: ob publish-setup --site "$OB_SITE_ID" --path "$GITHUB_WORKSPACE/en" | |
| - name: Publish | |
| run: ob publish --path "$GITHUB_WORKSPACE/en" --all --yes |