Skip to content

add source control url using github context props #3

add source control url using github context props

add source control url using github context props #3

Workflow file for this run

name: Deploy app
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install npm dependencies
run: npm install
- name: Deploy
env:
# Token from the Partner Dashboard
SHOPIFY_CLI_PARTNERS_TOKEN: ${{ secrets.SHOPIFY_CLI_PARTNERS_TOKEN }}
# .env content after a deploy
SHOPIFY_API_KEY: 3dab3303f5789587b2f870f9149d904c
COMMIT_URL: ${{ github.server_url }}/${{ github.respository }}/commit/${{ github.sha }}
run: npm run deploy -- -f --source-control-url $COMMIT_URL