-
Notifications
You must be signed in to change notification settings - Fork 89
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
No zip file created #52
Comments
@om4csaba Can you share the workflow file that you used |
@dinhtungdu This was that: https://github.com/OM4/weatherzone/blob/7198cce5cda7ff8c34ec17d9ae55873f169e5f1b/.github/workflows/deploy.yml Content copied here:name: Deploy to WordPress.org
on:
release:
types: [published]
jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PLUGINS_GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip |
@om4csaba Why do you use Btw, I can't reproduce your issue. I forked your repo and make a test release and the zip file is created and uploaded to release without a problem. Note that I use |
The |
Apologies for the very belated response - I've updated the Action which had some logic I am surprised was previously working, and it also now emits a You also should not need to actually define If this is still an issue please do reopen this and link to the failed run again. Thanks! |
Describe the bug
No zip file created with
generate-zip: true
setting.Steps to Reproduce
##[error]Not Found
Expected behavior
The asset action can grab access to the generated zip file.
Additional context
I only tested with a simple plugin without build script Mentioning here because there is a vague description of zip file creation without build script in the README, but I did not properly understand the relationship between build step and the zip file creation.
I also tried with two different asset action:
actions/upload-release-asset@v1
andsvenstaro/upload-release-action@v2
.You can find my config here: https://github.com/OM4/weatherzone/blob/master/.github/workflows/deploy.yml
And the failed action here: https://github.com/OM4/weatherzone/runs/1066339241?check_suite_focus=true
The text was updated successfully, but these errors were encountered: