Giter VIP home page Giter VIP logo

Comments (5)

dinhtungdu avatar dinhtungdu commented on May 20, 2024

@om4csaba Can you share the workflow file that you used actions/upload-release-asset@v1?

from action-wordpress-plugin-deploy.

om4csaba avatar om4csaba commented on May 20, 2024

@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

from action-wordpress-plugin-deploy.

dinhtungdu avatar dinhtungdu commented on May 20, 2024

@om4csaba Why do you use PLUGINS_GITHUB_TOKEN but not GITHUB_TOKEN? Is PLUGINS_GITHUB_TOKEN a personal access token?

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 GITHUB_TOKEN and a modified version of this action (stripped out the svn commit parts).

from action-wordpress-plugin-deploy.

om4csaba avatar om4csaba commented on May 20, 2024

The GITHUB_TOKEN was taken for other application, and yes the PLUGINS_GITHUB_TOKEN is a personal access token. I will rename back to GITHUB_TOKEN and try again. Thanks!

from action-wordpress-plugin-deploy.

helen avatar helen commented on May 20, 2024

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 zip-path output param which you can then use in that step of the workflow instead of asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip. See the readme for an example.

You also should not need to actually define GITHUB_TOKEN in your secrets, it's provided by GitHub in the Actions context whenever you include it in the environment.

If this is still an issue please do reopen this and link to the failed run again. Thanks!

from action-wordpress-plugin-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.