无法使用GIT行动上传资产

发布于 2025-02-02 07:12:18 字数 1010 浏览 2 评论 0 原文

我正在尝试使用。这是我称之为的片段。

      - name: Prepare executables for uploading
        run: |
          mkdir executables
          # mv target/production/node-template executables/node-template
          mv target/debug/foo executables/foo

      - name: Upload node template executables to assets
        uses: alexellis/[email protected]
        env:
          GITHUB_TOKEN: ${{ github.token }}
        with:
          asset_paths: '["executables/*"]'

不幸的是,我会发现错误:

Run alexellis/[email protected]
Error: Not Found

我很感谢关于解决这个问题的任何指控

I am trying to upload a binary with in git action using https://github.com/alexellis/upload-assets . Here is the snippet of where I call it.

      - name: Prepare executables for uploading
        run: |
          mkdir executables
          # mv target/production/node-template executables/node-template
          mv target/debug/foo executables/foo

      - name: Upload node template executables to assets
        uses: alexellis/[email protected]
        env:
          GITHUB_TOKEN: ${{ github.token }}
        with:
          asset_paths: '["executables/*"]'

Unfortunately , I get the error:

Run alexellis/[email protected]
Error: Not Found

I would appreciate any pointers on resolving this , as I can't understand why it wont pick up the variable

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瞎闹 2025-02-09 07:12:18

我认为您应该在调用github操作 alexellis/

这是一些示例,使用github Action actions/create-rease

      - name: Create release
        id: create_release
        uses: actions/create-release@latest
        env: 
          GITHUB_TOKEN: ${{ secrets.repo_token }}
        with:
          tag_name: ${{ github.ref }}
          release_name: Release ${{ github.ref }}
          draft: false
          prerelease: false

I think you should create a release before calling the GitHub action alexellis/[email protected].

Here is some example using GitHub action actions/create-release

      - name: Create release
        id: create_release
        uses: actions/create-release@latest
        env: 
          GITHUB_TOKEN: ${{ secrets.repo_token }}
        with:
          tag_name: ${{ github.ref }}
          release_name: Release ${{ github.ref }}
          draft: false
          prerelease: false
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文