Browse Source

build testing

pull/362/head^2
GilbN 3 years ago
parent
commit
5914b4e889
  1. 17
      .github/workflows/minify-and-deploy.yml

17
.github/workflows/minify-and-deploy.yml

@ -4,10 +4,21 @@ on:
branches: branches:
- master - master
- develop - develop
- testing
paths-ignore: paths-ignore:
- 'docker-mods/**' - 'docker-mods/**'
- '.vscode/**' - '.vscode/**'
- '.github/**' - '.github/**'
workflow_dispatch:
inputs:
branch:
description: 'Select branch'
required: true
type: choice
options:
- master
- develop
- testing
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -53,7 +64,7 @@ jobs:
done done
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }} if: ${{ github.ref == 'refs/heads/master' || github.event.inputs.branch == 'master' }}
with: with:
publish_dir: ./ publish_dir: ./
publish_branch: live publish_branch: live
@ -61,7 +72,7 @@ jobs:
exclude_assets: '' exclude_assets: ''
- name: Deploy Develop - name: Deploy Develop
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/develop' }} if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }}
with: with:
publish_dir: ./ publish_dir: ./
publish_branch: live_develop publish_branch: live_develop
@ -69,7 +80,7 @@ jobs:
exclude_assets: '' exclude_assets: ''
- name: Deploy Testing - name: Deploy Testing
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/testing' }} if: ${{ github.ref == 'refs/heads/testing' || github.event.inputs.branch == 'testing' }}
with: with:
publish_dir: ./ publish_dir: ./
publish_branch: live_testing publish_branch: live_testing

Loading…
Cancel
Save