diff --git a/.github/workflows/html.yml b/.github/workflows/html.yml new file mode 100644 index 000000000..409f28605 --- /dev/null +++ b/.github/workflows/html.yml @@ -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 }}