mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-24 16:14:26 +08:00
Create html.yml
This commit is contained in:
parent
4c3b531cb0
commit
55f3e3526e
30
.github/workflows/html.yml
vendored
Normal file
30
.github/workflows/html.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
# This workflow will build a Java project with Gradle
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
||||
|
||||
name: Update html-branch
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [ published ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v2.3.1
|
||||
- name: Get git TAG
|
||||
id: tagName
|
||||
uses: olegtarasov/get-tag@v2.1
|
||||
- name: Copy assets 🔧
|
||||
run: |
|
||||
mkdir workingdir
|
||||
cp Plan/common/src/main/resources/assets/plan workingdir/Plan/src/main/resources/assets/plan
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@4.0.0
|
||||
with:
|
||||
branch: html # The branch the action should deploy to.
|
||||
folder: workingdir # The folder the action should deploy.
|
||||
commit-message: ${{ steps.tagName.outputs.tag }}
|
Loading…
Reference in New Issue
Block a user