support KT2024's obscured #115
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: "Deploy react app to github pages" | |
on: | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: "Log level" | |
required: true | |
default: "debug" | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
tags: | |
description: "Manual deploy run" | |
required: false | |
type: boolean | |
environment: | |
description: "Environment for manual deploy" | |
type: environment | |
required: true | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: jetli/[email protected] | |
- uses: actions/checkout@v4 | |
- run: npm ci | |
- run: npm run build | |
env: | |
CI: false | |
- run: git config user.name github-actions | |
- run: git config user.email [email protected] | |
- run: git --work-tree build add --all | |
- run: git commit -m "Automatic Deploy action run by github-actions" | |
- run: git push origin HEAD:gh-pages --force |