chore(actions): use pesde auth login command instead of manually editing config

This commit is contained in:
Erica Marigold 2024-11-12 21:20:03 +05:30 committed by GitHub
parent 6627b2895a
commit 58b1ecae3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,13 +29,7 @@ jobs:
echo "$HOME/.pesde/bin" >> $GITHUB_PATH echo "$HOME/.pesde/bin" >> $GITHUB_PATH
- name: Authenticate into pesde registry - name: Authenticate into pesde registry
run: | run: pesde auth login --token ${{ secrets.PESDE_TOKEN }}
cat > $HOME/.pesde/config.toml << 'EOF'
default_index = "https://github.com/daimond113/pesde-index"
scripts_repo = "https://github.com/daimond113/pesde-scripts"
[tokens]
"https://github.com/daimond113/pesde-index.git" = "${{ secrets.PESDE_TOKEN }}"
EOF
- name: Publish - name: Publish
run: pesde publish -y run: pesde publish -y