Skip to content

Commit 86be43a

Browse files
committed
chore/fix: automatic deployments
1 parent a5891f5 commit 86be43a

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

.github/workflows/new_version_release.yaml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,38 @@ jobs:
5555
with:
5656
upload-dir: out
5757

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+
5887
bump-version:
5988
name: Bump version
60-
needs: push-to-ipfs
89+
needs: [push-to-ipfs, deploy-app]
6190
runs-on: ubuntu-latest
6291
environment: production
6392
outputs:
@@ -109,32 +138,3 @@ jobs:
109138
**Preview:** https://${{ needs.push-to-ipfs.outputs.cid_v1 }}.ipfs.aleph.sh
110139
draft: false
111140
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

Comments
 (0)