Skip to content

Commit 642b095

Browse files
authored
ci: fix publish docs steps (#1069)
1 parent 7c0cd16 commit 642b095

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ on:
77
types:
88
- closed
99

10-
concurrency:
11-
group: pr-${{ github.workflow }}-${{ github.head_ref }}
12-
cancel-in-progress: true
13-
1410
jobs:
1511
publish:
1612
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')
@@ -34,24 +30,21 @@ jobs:
3430
uses: dfinity/ci-tools/actions/setup-pnpm@main
3531
with:
3632
node_version_file: '.nvmrc'
37-
33+
3834
- run: pnpm build
3935
- run: pnpm publish:packages
4036
env:
4137
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4238

4339
# publish docs
4440
- name: Install dfx
45-
run: dfinity/setup-dfx@main
41+
uses: dfinity/setup-dfx@main
4642
- name: Add new identity to dfx
43+
env:
44+
DFX_IDENTITY_PEM: ${{ secrets.DFX_IDENTITY_PEM }}
4745
run: |
48-
echo ${{ secrets.DFX_IDENTITY_PEM }} > identity.pem
49-
dfx identity import docs-deployer identity.pem
46+
echo "$DFX_IDENTITY_PEM" > ./identity.pem
47+
dfx identity import --storage-mode plaintext docs-deployer ./identity.pem
5048
dfx identity use docs-deployer
5149
- name: Deploy docs
52-
run: dfx deploy --network ic
53-
54-
- name: Delete release branch
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
run: git push origin --delete ${{ env.BRANCH }}
50+
run: DFX_WARNING=-mainnet_plaintext_identity dfx deploy --ic docs

0 commit comments

Comments
 (0)