Skip to content

Update MDK to match NeoForgeMDKs/MDK-1.21-ModDevGradle@9f434bd #17

Update MDK to match NeoForgeMDKs/MDK-1.21-ModDevGradle@9f434bd

Update MDK to match NeoForgeMDKs/MDK-1.21-ModDevGradle@9f434bd #17

name: Deploy to Dahongpao
on:
push:
branches: [ 1.21-neoforge ]
workflow_dispatch:
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Clone GitHub Repo
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Build Static Pages
run: |
npm install --save-dev
npm run build
- name: Push to Dahongpao
env:
TEACON_DAHONGPAO_PUSH_AUTHORITY: ${{ secrets.TEACON_DAHONGPAO_PUSH_AUTHORITY }}
run: |
git config --global user.name 'TeaCon Bot'
git config --global user.email '[email protected]'
git clone https://$TEACON_DAHONGPAO_PUSH_AUTHORITY/teaconmc/Dahongpao.git --depth 1
cd Dahongpao; rm -rf workspaces/xiaozhong/build; cp -R ../build workspaces/xiaozhong/
git add workspaces/xiaozhong/build; git commit -m "Update xiaozhong at $(date -R)"
git push; cd ..