Use token in publish
Some checks failed
Release packages / build-and-release-artifact (push) Failing after 1m13s
Some checks failed
Release packages / build-and-release-artifact (push) Failing after 1m13s
This commit is contained in:
@@ -57,17 +57,11 @@ jobs:
|
||||
- name: Add registry to cargo config
|
||||
run: echo -e '[registries.gitea]\nindex = "sparse+https://git.noahknegt.com/api/packages/${{ github.repository_owner }}/cargo/"\n' > ~/.cargo/config.toml
|
||||
|
||||
- name: Login to cargo registry
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: login
|
||||
args: --token=${{ secrets.CARGO_REGISTRY_TOKEN }} --registry gitea
|
||||
|
||||
- name: Publish to cargo registry
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: publish
|
||||
args: --no-verify --registry gitea
|
||||
args: --no-verify --registry gitea --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
env:
|
||||
CARGO_NET_GIT_FETCH_WITH_CLI: true
|
||||
CARGO_NET_RETRY: 2
|
||||
|
Reference in New Issue
Block a user