Open RodrigoDornelles opened 2 years ago
try
- name: Upload binaries and libaries to github
uses: softprops/action-gh-release@v1
with:
files: |
"*.tar.gz"
"*.zip"
https://github.com/softprops/action-gh-release#%EF%B8%8F-uploading-release-assets
try
- name: Upload binaries and libaries to github uses: softprops/action-gh-release@v1 with: files: | "*.tar.gz" "*.zip"
https://github.com/softprops/action-gh-release#%EF%B8%8F-uploading-release-assets
dont work for me
try
- name: Upload binaries and libaries to github uses: softprops/action-gh-release@v1 with: files: | "*.tar.gz" "*.zip"
https://github.com/softprops/action-gh-release#%EF%B8%8F-uploading-release-assets
dont work for me
+1. I get the same error
Github actions only supports strings at this time so I need to work within those design constraints. The multi line syntax in the readme is yaml syntax for a multi line at string
I’m the suggestion above you are double quoting that string but placing quotes inside that string. Try removing those
- name: Upload binaries and libaries to github
uses: softprops/action-gh-release@v1
with:
files: |
*.tar.gz
*.zip
Github actions only supports strings at this time so I need to work within those design constraints. The multi line syntax in the readme is yaml syntax for a multi line at string
I’m the suggestion above you are double quoting that string but placing quotes inside that string. Try removing those
- name: Upload binaries and libaries to github uses: softprops/action-gh-release@v1 with: files: | *.tar.gz *.zip
doing this is not a valid yaml, and I had tested it before also in this case.
Has there been progress on this one ? I'm also looking for a way to specify multiple patterns
I'm wondering if an error I've been getting is related. I see Pattern '...' does not match any files
even when the pattern doesn't have a wildcard and is an exact match with the one file in the working directory:
workflow:
name: build
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# this step actually compiles a Nim program but I believe that's
# beside the point for our purposes:
- run: touch prices-ubuntu-latest
- uses: actions/upload-artifact@v3
with:
name: prices-ubuntu-latest
path: prices-ubuntu-latest
release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v3
- run: ls -al
- uses: softprops/action-gh-release@v1
with:
files: |
prices-ubuntu-latest
it would be interesting to send more than one patern in the same step, I end up having to duplicate it because I need to send .zip and .tar.gz
currently
suggestion