Comments (5)
@om4csaba Can you share the workflow file that you used actions/upload-release-asset@v1
?
from action-wordpress-plugin-deploy.
@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.
@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.
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.
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)
- Trigger a failure if not all files are added to SVN
- Bump WordPress and PHP minimums HOT 1
- [Feature request] Add action typings HOT 2
- Option for a trunk-only deployment HOT 2
- questions regarding the build process
- README Example should indicate actions/checkout@master is required HOT 1
- Changing file X is forbidden by the server HOT 1
- [Feature Request] Update readme.txt while deploying HOT 3
- fatal: detected dubious ownership in repository at '/github/workspace' HOT 10
- Sync from GIT to SVN fails for tags HOT 7
- set-output command deprecated in last release HOT 4
- Support a "DRY RUN" mode that can be used while testing HOT 3
- Fix deploy script to not attempt re-publishing the same version of a plugin
- Action workflow examples
- Dry run is on by default HOT 2
- Unable to deploy to WP (for two releases) despite workflow marked as succeeded HOT 1
- svn: E155007: '/somedir/somefile' is not a working copy HOT 3
- If the version already exists in SVN and generate-zip is configured, it should also generate the ZIP HOT 1
- Could you release major version(s) of your GitHub action? HOT 3
- Assets svn propset commands fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-wordpress-plugin-deploy.