move dataframes_md-update.nu
file into the tools
folder (#1447)
#6
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
# REF: | |
# 1. https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-from-a-branch | |
name: Deploy Docs from Workflow Action | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' }} | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ref: main | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
- run: npm install | |
- name: Build Static Docs | |
env: | |
NODE_OPTIONS: '--max_old_space_size=8192' | |
run: npm run build | |
- name: Upload Artifact | |
uses: actions/[email protected] | |
with: | |
path: ./.vuepress/dist | |
# Deployment job | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
permissions: | |
pages: write # to deploy pages | |
id-token: write # to verify the originates from an appropriate source | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/[email protected] |