feat: fix hildr doc #15
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: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout tools repo | |
uses: actions/checkout@v4 | |
- name: Get additional Github env vars # vars from Github env, can not be modified by users | |
uses: FranzDiebold/github-env-vars-action@v2 | |
- name: Read .nvmrc | |
shell: bash | |
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
id: nvm | |
- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
registry-url: https://registry.npmjs.org/ | |
- name: npm build | |
shell: bash | |
run: | | |
npm install | |
npm run build | |
- name: Deploy Preview | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: build # The folder the action should deploy. | |
clean: true | |
single-commit: true |