name: Deploy
on:
  push:
    # Sequence of patterns matched against refs/heads
    branches:
      - dev

permissions:
  actions: read
  contents: read

jobs:
  debug:
    uses: ./.github/workflows/dev.yml
    secrets: inherit
  deploy:
    needs: debug
    runs-on: ubuntu-latest
    steps:
      - name: Download artifact
        uses: actions/download-artifact@master
        with:
          name: artifact
      - name: Deploy
        uses: exuanbo/actions-deploy-gist@main
        with:
          token: ${{ secrets.GIST_TOKEN }}
          gist_id: b5f0de011fabe5637ff53e585e9d061d
          gist_description: " iRingo: ⭕ Siri β"
          file_path: dist/request.bundle.js
      - name: Deploy
        uses: exuanbo/actions-deploy-gist@main
        with:
          token: ${{ secrets.GIST_TOKEN }}
          gist_id: b5f0de011fabe5637ff53e585e9d061d
          gist_description: " iRingo: ⭕ Siri β"
          file_path: dist/response.bundle.js