Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mkdir on Upload #12

Open
seanwu1105 opened this issue Oct 11, 2020 · 0 comments
Open

Mkdir on Upload #12

seanwu1105 opened this issue Oct 11, 2020 · 0 comments

Comments

@seanwu1105
Copy link

Currently, the directory of upload-to property need to be created manually before the action runs to avoid the following error:

skicka: /path/to/upload: not found

It would be really convenient to create the target directory before the upload.

skicka mkdir -p /path/to/upload

By doing so, this action can be easily integrated with variables with simple expression. For example,

- name: Upload files to Google Drive
  uses: satackey/action-google-drive@v1
  with:
    skicka-tokencache-json: ${{ secrets.SKICKA_TOKENCACHE_JSON }}
    google-client-id: ${{ secrets.SKICKA_GOOGLE_CLIENT_ID }}
    google-client-secret: ${{ secrets.SKICKA_GOOGLE_CLIENT_SECRET }}
    upload-from: ./app/build/outputs/apk/
    upload-to: /my-app/apk/${{ steps.extract_version.outputs.appVersionName }}/

The expression, ${{ steps.extract_version.outputs.appVersionName }}, might be changed every time the action runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant