Skip to content

Commit

Permalink
chore: fix github action and allow manual dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Oct 27, 2023
1 parent fe6520e commit faec1af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:
- completed
branches:
- main
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
# only run if the tests were successful
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
outputs:
version: ${{ steps.npm-publish.outputs.version }}
steps:
Expand All @@ -29,9 +30,10 @@ jobs:
DFX_IDENTITY_PEM: ${{ secrets.DFX_IDENTITY_PEM }}

- name: install mops
run: npm i ic-mops -g
run: npm i ic-mops mocv -g

- run: |
- name: publish on mops
run: |
dfx identity use action
mops import-identity --no-encrypt -- "$(dfx identity export action)"
mops publish
Expand Down

0 comments on commit faec1af

Please sign in to comment.