Skip to content

Publish

Publish #44

Workflow file for this run

name: Publish
on:
workflow_dispatch:
jobs:
publish-website:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: NPM install
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Build website
run: npm run build
env:
NODE_OPTIONS: '--max_old_space_size=5000'
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
user_name: Medžuslovjansky Bot
user_email: [email protected]
- name: Update Tag
run: |
git tag --force deployed
git push --tags --force origin