github-actions - Github 工作流程:在操作/结帐部分找不到存储库
问题描述
我正在尝试通过 github 工作流程让我的 python 项目在 Pypi 上自动更新。我从未做过 github 工作流程(或任何工作流程)。它似乎不起作用。
就是这条线:uses: action/checkout@main
在build-n-publish
零件下面。
它总是失败,我得到: Unable to resolve action action/checkout@main
,repository not found。
无论我用什么代替 main,无论是 v1、v2、master 等,都会发生这种情况......
我在网上找不到任何解释它的东西。我应该用什么代替主要?
对于上下文.yml
文件:
name: CI
on:
push:
branches:
- main
jobs:
build-n-publish:
name: build and publish pee to pypi
runs-on: macOS-latest
steps:
- uses: action/checkout@pee
with:
repository: ''
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
repository_url: https://pypi.org/legacy/
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}.
解决方案
推荐阅读
- elasticsearch - 使用 NEST 客户端进行弹性应该 + 必须组合查询
- devexpress - DevExpress Blazor DxDataGrid - 使用组件时访问上下文?
- json - 同时验证 2 个 Json 字段是否为 Not Null
- python - 给定一棵二叉树和一个数字“S”,找到从根到叶的所有路径,使得每条路径的所有节点值之和等于“S”
- input - 如何通过python将带空格的多行输入到列表中
- sql - 用于日期的 Teradata 循环,在循环内添加列
- android - 使用 ExoPlayer 平滑过渡到全屏?
- python - 添加列时如何在 Pyspark 中使用 UUID5 或 UUID3?
- algorithm - 库中是否有任何 MCMF 算法?
- python - 如何使用一列熊猫中的值创建多列