Skip to content

Commit

Permalink
Add note about windows paths (#340)
Browse files Browse the repository at this point in the history
* Add note about windows paths

#280

Document change in glob 8.0

* Fix incorrectly escaped markdown backslashes
  • Loading branch information
fredemmott committed Mar 26, 2023
1 parent d4e8205 commit c9b46fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -128,6 +128,8 @@ jobs:

> **鈿狅笍 Note:** Notice the `|` in the yaml syntax above 鈽濓笍. That let's you effectively declare a multi-line yaml string. You can learn more about multi-line yaml syntax [here](https://yaml-multiline.info)
> **鈿狅笍 Note for Windows:** Paths must use `/` as a separator, not `\`, as `\` is used to escape characters with special meaning in the pattern; for example, instead of specifying `D:\Foo.txt`, you must specify `D:/Foo.txt`. If you're using PowerShell, you can do this with `$Path = $Path -replace '\\','/'`
### 馃摑 External release notes

Many systems exist that can help generate release notes for you. This action supports
Expand Down

1 comment on commit c9b46fe

@xsamueljr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you give some real example? I cannot use this action because of this.

name: Build

on:
  push:
    paths:
      - '**.py'
      - '**.yml'

  workflow_dispatch:


jobs:
  test:
    runs-on: windows-latest
    steps:
    
    - name: Checkout
      uses: actions/checkout@v2

    - name: Setup Python 3.9
      uses: actions/setup-python@v4.7.1
      with:
        python-version: 3.9

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt
        pip install -r requirements-dev.txt

    - name: Build
      run: flet pack main.py --name "Amazing optimizer"

    - name: Publish build
      uses: softprops/action-gh-release@v0.1.15
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        files: dist/"Amazing optimizer.exe"
        tag_name: ${{ github.run_number }}
        name: Download here!

It's for a public project so I don't care about sharing the whole file. Whatever I do, I'm always receiving the error 馃 Pattern does not match any files.

Please sign in to comment.