Build and deploy gatsby

This commit is contained in:
ligi 2023-01-23 05:18:35 +01:00
parent a1f4fe4f11
commit 12f2a5e510

View File

@ -6,10 +6,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
with:
submodules: recursive
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v35
uses: tj-actions/changed-files@v35.4.4
- name: Check changed files
run: |
@ -32,14 +34,24 @@ jobs:
id: extract_branch
- name: Checkout
uses: actions/checkout@v2.3.1
with:
submodules: recursive
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}
- name: Build
run: |
./gradlew run
- name: Run install
uses: borales/actions-yarn@v4
with:
dir: 'website'
cmd: install # will run `yarn install` command
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}
- name: Test the app
uses: borales/actions-yarn@v4
with:
dir: 'website'
cmd: run build # will run `yarn test` command
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: output
folder: website/public
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }}