diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index d07ea34..eb6be5c 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -10,21 +10,21 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Install nitghly run: | - rustup install nightly - rustup default nightly + rustup install nightly + rustup default nightly - name: test + env: + MTN_URL: ${{ secrets.MTN_URL }} + MTN_COLLECTION_PRIMARY_KEY: ${{ secrets.MTN_COLLECTION_PRIMARY_KEY }} + MTN_COLLECTION_SECONDARY_KEY: ${{ secrets.MTN_COLLECTION_SECONDARY_KEY }} + MTN_DISBURSEMENT_PRIMARY_KEY: ${{ secrets.MTN_DISBURSEMENT_PRIMARY_KEY}} + MTN_DISBURSEMENT_SECONDARY_KEY: ${{ secrets.MTN_DISBURSEMENT_SECONDARY_KEY}} + MTN_REMITTANCE_PRIMARY_KEY: ${{ secrets.MTN_REMITTANCE_PRIMARY_KEY }} + MTN_REMITTANCE_SECONDARY_KEY: ${{ secrets.MTN_REMITTANCE_SECONDARY_KEY }} + MTN_API_USER: ${{ secrets.MTN_API_USER}} + MTN_API_KEY: ${{ secrets.MTN_API_KEY}} run: | - touch .env - echo MTN_URL=${{ secrets.MTN_URL }} >> .env - echo MTN_COLLECTION_PRIMARY_KEY=${{ secrets.MTN_COLLECTION_PRIMARY_KEY }} >> .env - echo MTN_COLLECTION_SECONDARY_KEY=${{ secrets.MTN_COLLECTION_SECONDARY_KEY }} >> .env - echo MTN_DISBURSEMENT_PRIMARY_KEY=${{ secrets.MTN_DISBURSEMENT_PRIMARY_KEY}} >> .env - echo MTN_DISBURSEMENT_SECONDARY_KEY=${{ secrets.MTN_DISBURSEMENT_SECONDARY_KEY}} >> .env - echo MTN_REMITTANCE_PRIMARY_KEY=${{ secrets.MTN_REMITTANCE_PRIMARY_KEY }} >> .env - echo MTN_REMITTANCE_SECONDARY_KEY=${{ secrets.MTN_REMITTANCE_SECONDARY_KEY }} >> .env - echo MTN_API_USER=${{ secrets.MTN_API_USER}} >> .env - echo MTN_API_KEY=${{ secrets.MTN_API_KEY}} >> .env cargo test # release: @@ -36,4 +36,4 @@ jobs: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # run: | # tag=$(git describe --tags --abbrev=0) - # gh release create $tag ./target/release/* \ No newline at end of file + # gh release create $tag ./target/release/*