Skip to content

Commit 22a1736

Browse files
committed
replaced cocreate/hosting with cocreate/cli run coc upload
1 parent 974ecfb commit 22a1736

File tree

1 file changed

+39
-15
lines changed

1 file changed

+39
-15
lines changed

.github/workflows/automated.yml

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,42 @@ jobs:
6363
run: |
6464
docker push ${IMAGE}:latest
6565
docker push ${IMAGE}:${VERSION}
66-
docs:
67-
runs-on: ubuntu-latest
68-
steps:
69-
- name: Checkout
70-
uses: actions/checkout@v3
71-
- name: setup nodejs
72-
uses: actions/setup-node@v3
73-
with:
74-
node-version: 16
75-
- name: update documentation
76-
uses: CoCreate-app/CoCreate-docs@master
77-
env:
78-
organization_id: ${{ secrets.COCREATE_ORGANIZATION_ID }}
79-
key: ${{ secrets.COCREATE_KEY }}
80-
host: ${{ secrets.COCREATE_HOST }}
66+
upload:
67+
runs-on: ubuntu-latest
68+
69+
steps:
70+
- name: Checkout
71+
uses: actions/checkout@v3
72+
73+
- name: Setup Node.js
74+
uses: actions/setup-node@v3
75+
with:
76+
node-version: 16
77+
78+
- name: Get Environment Variables
79+
run: |
80+
echo "organization_id=${{ secrets.COCREATE_ORGANIZATION_ID }}" >> $GITHUB_ENV
81+
echo "key=${{ secrets.COCREATE_KEY }}" >> $GITHUB_ENV
82+
echo "host=${{ secrets.COCREATE_HOST }}" >> $GITHUB_ENV
83+
84+
- name: Install @cocreate/cli
85+
run: npm install -g @cocreate/cli
86+
87+
- name: CoCreate CLI Upload
88+
run: coc upload
89+
90+
# docs:
91+
# runs-on: ubuntu-latest
92+
# steps:
93+
# - name: Checkout
94+
# uses: actions/checkout@v3
95+
# - name: setup nodejs
96+
# uses: actions/setup-node@v3
97+
# with:
98+
# node-version: 16
99+
# - name: update documentation
100+
# uses: CoCreate-app/CoCreate-docs@master
101+
# env:
102+
# organization_id: ${{ secrets.COCREATE_ORGANIZATION_ID }}
103+
# key: ${{ secrets.COCREATE_KEY }}
104+
# host: ${{ secrets.COCREATE_HOST }}

0 commit comments

Comments
 (0)