Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发布代码部分报错, #2

Open
hedahong opened this issue Oct 20, 2020 · 2 comments
Open

发布代码部分报错, #2

hedahong opened this issue Oct 20, 2020 · 2 comments

Comments

@hedahong
Copy link

提示信息:
Run svenstaro/upload-release-action@v2
with:
repo_name: hedahong/lede-for-r2s
file: ./lede/artifact.zip
asset_name: 发布 R2S-Lean-firmware-2020-10-19.zip
tag: refs/heads/main
overwrite: true
body: by dosar
env:
SSH_ACTIONS: true
TZ: Asia/Shanghai
Error: Input required and not supplied: repo_token

.yml 文件配置:
- name: Upload binaries to release
#uses: svenstaro/upload-release-action@v2
#uses: softprops/action-gh-release@v1
uses: actions/upload-artifact@master
with:
repo_name: hedahong/lede-for-r2s
# A personal access token for the GitHub repository in which the release will be created and edited.
# It is recommended to create the access token with the following scopes: repo, user, admin:repo_hook.
repo_token: ${{ secrets.sec_token }}
file: ./lede/artifact.zip
asset_name: 发布 ${{ steps.assemble_artifact.outputs.release_tag }}.zip
tag: ${{ github.ref }}
overwrite: true
body: "by dosar"

没太理解 这个 repo_token 是配啥token ,把 repo_token 和 tag 这俩行注解掉行吗。

@szdosar
Copy link
Owner

szdosar commented Oct 20, 2020

repo_token是要设置你的令牌的。先在你的个人帐号里先成,再设置到你的项目里。

@szdosar
Copy link
Owner

szdosar commented Oct 20, 2020

提示信息:

Run svenstaro/upload-release-action@v2

with:

repo_name: hedahong/lede-for-r2s

file: ./lede/artifact.zip

asset_name: 发布 R2S-Lean-firmware-2020-10-19.zip

tag: refs/heads/main

overwrite: true

body: by dosar

env:

SSH_ACTIONS: true

TZ: Asia/Shanghai

Error: Input required and not supplied: repo_token

.yml 文件配置:

  - name: Upload binaries to release

   #uses: svenstaro/upload-release-action@v2

   #uses: softprops/action-gh-release@v1

    uses: actions/upload-artifact@master

    with:

       repo_name: hedahong/lede-for-r2s

    # A personal access token for the GitHub repository in which the release will be created and edited.

    # It is recommended to create the access token with the following scopes: `repo, user, admin:repo_hook`.

       repo_token: ${{ secrets.sec_token }}

       file: ./lede/artifact.zip

       asset_name: 发布 ${{ steps.assemble_artifact.outputs.release_tag }}.zip

       tag: ${{ github.ref }}

       overwrite: true

       body: "by dosar"

没太理解 这个 repo_token 是配啥token ,把 repo_token 和 tag 这俩行注解掉行吗。

最后一个环节是发布用的,如果不会配置的话,完全可以把最后一个环节删掉。对于你私人使用而言,没有实质性的影响。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants