Skip to content

Commit

Permalink
chore(actions): use cat heredoc for auth config instead
Browse files Browse the repository at this point in the history
  • Loading branch information
CompeyDev authored Nov 12, 2024
1 parent afe13e8 commit d9a7033
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ jobs:
- name: Authenticate into pesde registry
run: |
echo -e "default_index = "https://github.com/daimond113/pesde-index"\n$(cat $HOME/.pesde/config.toml)" > $HOME/.pesde/config.toml
echo '[tokens]' > $HOME/.pesde/config.toml
echo '"https://github.com/daimond113/pesde-index.git" = "${{ secrets.PESDE_TOKEN }}"' >> $HOME/.pesde/config.toml
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
run: pesde publish --dry-run

0 comments on commit d9a7033

Please sign in to comment.