Skip to content

✨ fix basic authentication #190

✨ fix basic authentication

✨ fix basic authentication #190

Workflow file for this run

name: 🌸 编译发布测试环境
on: [push]
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.0.0
- name: Setup Nodejs
run: |
echo "::remove-matcher owner=eslint-compact::"
echo "::remove-matcher owner=eslint-stylish::"
echo "NOW=$(date -u)" >> $GITHUB_ENV
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm install
CI=false PUBLIC_URL=${{ secrets.DEV_PUBLIC_URL }} \
REACT_APP_API_URL=${{ secrets.DEV_REACT_APP_API_URL }} \
REACT_APP_STORE_KEY=${{ secrets.DEV_REACT_APP_STORE_KEY }} \
REACT_APP_BUILD_ID=${GITHUB_SHA} \
REACT_APP_BUILD_BRANCH=${GITHUB_REF_NAME} \
REACT_APP_BUILD_TIME="${{ env.NOW }}" \
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages-dev
folder: build # The folder the action should deploy.