|
55 | 55 | with: |
56 | 56 | upload-dir: out |
57 | 57 |
|
| 58 | + deploy-app: |
| 59 | + name: Deploy to production |
| 60 | + needs: push-to-ipfs |
| 61 | + runs-on: ubuntu-latest |
| 62 | + environment: production |
| 63 | + steps: |
| 64 | + - name: Checkout repository |
| 65 | + uses: actions/checkout@v3 |
| 66 | + with: |
| 67 | + fetch-depth: 0 |
| 68 | + |
| 69 | + - name: Setup Python |
| 70 | + uses: actions/setup-python@v5 |
| 71 | + with: |
| 72 | + python-version: 3.11 |
| 73 | + |
| 74 | + - name: Install dependencies |
| 75 | + run: | |
| 76 | + pip install -r scripts/deploy/requirements.txt |
| 77 | + shell: bash |
| 78 | + |
| 79 | + - name: Deploy to Aleph |
| 80 | + run: | |
| 81 | + python scripts/deploy/client.py \ |
| 82 | + --cid ${{ needs.push-to-ipfs.outputs.cid_v0 }} \ |
| 83 | + --app ${{ vars.DEPLOY_APP }} \ |
| 84 | + --url ${{ vars.DEPLOY_URL }} \ |
| 85 | + --key ${{ secrets.DEPLOY_PRIVATE_KEY }} |
| 86 | +
|
58 | 87 | bump-version: |
59 | 88 | name: Bump version |
60 | | - needs: push-to-ipfs |
| 89 | + needs: [push-to-ipfs, deploy-app] |
61 | 90 | runs-on: ubuntu-latest |
62 | 91 | environment: production |
63 | 92 | outputs: |
@@ -109,32 +138,3 @@ jobs: |
109 | 138 | **Preview:** https://${{ needs.push-to-ipfs.outputs.cid_v1 }}.ipfs.aleph.sh |
110 | 139 | draft: false |
111 | 140 | prerelease: false |
112 | | - |
113 | | - deploy-app: |
114 | | - name: Deploy to production |
115 | | - needs: [push-to-ipfs, bump-version] |
116 | | - runs-on: ubuntu-latest |
117 | | - environment: production |
118 | | - steps: |
119 | | - - name: Checkout repository |
120 | | - uses: actions/checkout@v3 |
121 | | - with: |
122 | | - fetch-depth: 0 |
123 | | - |
124 | | - - name: Setup Python |
125 | | - uses: actions/setup-python@v5 |
126 | | - with: |
127 | | - python-version: 3.11 |
128 | | - |
129 | | - - name: Install dependencies |
130 | | - run: | |
131 | | - pip install -r scripts/deploy/requirements.txt |
132 | | - shell: bash |
133 | | - |
134 | | - - name: Deploy to Aleph |
135 | | - run: | |
136 | | - python scripts/deploy/client.py \ |
137 | | - --cid ${{ needs.push-to-ipfs.outputs.cid_v0 }} \ |
138 | | - --app ${{ env.DEPLOY_APP }} \ |
139 | | - --url ${{ env.DEPLOY_URL }} \ |
140 | | - --key ${{ secrets.DEPLOY_PRIVATE_KEY }} |
0 commit comments