Last active
February 19, 2023 05:19
-
-
Save bkspace/e94ad3e19d5c0a6cea036caaf5a4258a to your computer and use it in GitHub Desktop.
An example Github workflow file to deploy Shopify extensions/functions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Function Deploy | |
on: | |
push: | |
branches: | |
- main | |
env: | |
SHOPIFY_API_KEY: ${{ secrets.SHOPIFY_API_KEY }} | |
SHOPIFY_FUNCTION_ID: ${{ secrets.SHOPIFY_FUNCTION_KEY }} | |
jobs: | |
extensions: | |
name: Deploy Extensions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.1.2' | |
- run: yarn install | |
- run: | | |
cargo install cargo-wasi | |
cargo wasi version | |
gem install bundler | |
yarn deploy | |
env: | |
SHOPIFY_CLI_PARTNERS_TOKEN: ${{ secrets.SHOPIFY_CLI_AUTH_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment