THU Hole react frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.2 KiB

name: Auto Deploy
on:
push:
branches:
- 'master'
jobs:
gh_pages:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: "Install Dependencies"
run: yarn
- name: "Get current date"
id: "date"
run: echo "::set-output name=date::$(date --rfc-3339=date)"
- name: "Build"
run: yarn build
env:
PUBLIC_URL: https://gcore.jsdelivr.net/gh/${{ github.repository }}@gh-pages
REACT_APP_ROOM_ID: 1
REACT_APP_BACKEND: "https://api.sbsybqlaaaaaaa.buzz/"
REACT_APP_STORAGE: "https://file.sbsybqlaaaaaaa.buzz/"
REACT_APP_BUILD_INFO: "v-${{steps.date.outputs.date}}"
- name: "Deploy with gh-pages"
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn deploy -u "github-actions-bot <[email protected]>" -m "$COMMIT_MESSAGE"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
COMMIT_MESSAGE: "Build for [${{ github.event.head_commit.message }}]"