-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 1.48 KB
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# SPDX-FileCopyrightText: Copyright © 2021 snek.at
# SPDX-License-Identifier: EUPL-1.2
#
# Use of this source code is governed by an EUPL-1.2 license that can be found
# in the LICENSE file at https://snek.at/license
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#name
name: Publish
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#on
on:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
repository_dispatch:
types: [UPDATE_JAEN_DATA]
# https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobs
jobs:
jaen-publish:
uses: schett-net/ami/.github/workflows/jaen-publish.yaml@main
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idwith
with:
JAEN_MIGRATION_URL: ${{github.event.client_payload.jaendata_url}}
WORKING_DIRECTORY: ${{github.event.client_payload.cwd}}
jaen-deploy:
needs: jaen-publish
uses: schett-net/ami/.github/workflows/jaen-deploy.yaml@main
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
secrets:
GATSBY_MYSHOPIFY_URL: ${{ secrets.GATSBY_MYSHOPIFY_URL }}
GATSBY_STOREFRONT_API_KEY: ${{ secrets.GATSBY_STOREFRONT_API_KEY }}
SCALE_SERP_APIKEY: ${{ secrets.SCALE_SERP_APIKEY }}
SCALE_SERP_GOOGLE_PLACE_ID: ${{ secrets.SCALE_SERP_GOOGLE_PLACE_ID }}
SHOPIFY_APP_PASSWORD: ${{ secrets.SHOPIFY_APP_PASSWORD }}