Skip to content

New Crowdin updates #623

New Crowdin updates

New Crowdin updates #623

Workflow file for this run

name: Update docs
on:
push:
branches:
- '**'
- '!crowdin'
tags:
- '*'
pull_request_target:
branches:
- '*'
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install Node Dependencies
run: |
npm install
- name: Build Docs
env:
DEPLOYMENT: gh-pages
run: |
npm run build:docs
- name: Upload Pages Artifact
if: ${{ github.event_name == 'push' && github.repository == 'Corsace/Corsace' && github.ref_name == 'master' }}
uses: actions/upload-pages-artifact@v1
with:
path: Docs/dist/
deploy:
if: ${{ github.event_name == 'push' && github.repository == 'Corsace/Corsace' && github.ref_name == 'master' }}
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1