Skip to content

How to handle deployment actions and ignored files #22

Description

@mike-diff

Need a way to manage and maintain ignored files in github actions so each deployment does not reset Shopify 2.0 templates.

  • .github/staging.yml
  • .github/production.yml
    New templates need to be added the first time and then ignored...
    Also looking for better alternatives?
  deploy_to_staging_theme:
    runs-on: ubuntu-latest
    needs: build_and_install
    steps:
      - uses: actions/checkout@v2
      - uses: actions/download-artifact@v3
        with:
          path: dist
      - name: Display structure of downloaded files
        run: ls -R
        working-directory: dist

      - uses: discolabs/deploy-shopify-theme-action@v1
        with:
          store: ${{ secrets.SHOP_STORE }}
          password: ${{ secrets.SHOP_ACCESS_TOKEN }}
          publlished_theme_id: ${{ secrets.SHOP_THEME_ID }}
          path: 'dist'
#           additional_args: '--ignored-file=config/settings_data.json'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions