diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55e2fd5..9afcba7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@master - name: Build project # This would actually build your project, using zip for an example artifact run: | - zip -r "A-4E-C_${{GITHUB_REF#refs/tags/}}.zip" A-4E-C/ + zip -r "A-4E-C_${GITHUB_REF/refs\/tags\//}.zip" A-4E-C/ - name: Create Release id: create_release uses: actions/create-release@v1.0.0 @@ -33,6 +33,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: "./A-4E-C_${{GITHUB_REF#refs/tags/}}.zip" - asset_name: "A-4E-C_${{GITHUB_REF#refs/tags/}}.zip" + asset_path: "./A-4E-C_${GITHUB_REF/refs\/tags\//}.zip" + asset_name: "A-4E-C_${GITHUB_REF/refs\/tags\//}.zip" asset_content_type: application/zip