Skip to content

Commit 1e52dbd

Browse files
committed
replaced cocreate/hosting with cocreate/cli run coc upload
1 parent aa348b0 commit 1e52dbd

File tree

1 file changed

+38
-15
lines changed

1 file changed

+38
-15
lines changed

.github/workflows/automated.yml

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,42 @@ jobs:
4141
outputs:
4242
new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
4343
new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
44-
docs:
45-
runs-on: ubuntu-latest
46-
steps:
47-
- name: Checkout
48-
uses: actions/checkout@v3
49-
- name: setup nodejs
50-
uses: actions/setup-node@v3
51-
with:
52-
node-version: 16
53-
- name: update documentation
54-
uses: CoCreate-app/CoCreate-docs@master
55-
env:
56-
organization_id: ${{ secrets.COCREATE_ORGANIZATION_ID }}
57-
key: ${{ secrets.COCREATE_KEY }}
58-
host: ${{ secrets.COCREATE_HOST }}
44+
upload:
45+
runs-on: ubuntu-latest
46+
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v3
50+
51+
- name: Setup Node.js
52+
uses: actions/setup-node@v3
53+
with:
54+
node-version: 16
55+
56+
- name: Get Environment Variables
57+
run: |
58+
echo "organization_id=${{ secrets.COCREATE_ORGANIZATION_ID }}" >> $GITHUB_ENV
59+
echo "key=${{ secrets.COCREATE_KEY }}" >> $GITHUB_ENV
60+
echo "host=${{ secrets.COCREATE_HOST }}" >> $GITHUB_ENV
61+
62+
- name: Install @cocreate/cli
63+
run: npm install -g @cocreate/cli
64+
65+
- name: CoCreate CLI Upload
66+
run: coc upload
5967

68+
# docs:
69+
# runs-on: ubuntu-latest
70+
# steps:
71+
# - name: Checkout
72+
# uses: actions/checkout@v3
73+
# - name: setup nodejs
74+
# uses: actions/setup-node@v3
75+
# with:
76+
# node-version: 16
77+
# - name: update documentation
78+
# uses: CoCreate-app/CoCreate-docs@master
79+
# env:
80+
# organization_id: ${{ secrets.COCREATE_ORGANIZATION_ID }}
81+
# key: ${{ secrets.COCREATE_KEY }}
82+
# host: ${{ secrets.COCREATE_HOST }}

0 commit comments

Comments
 (0)