Add setup-remote.sh script and publish it via getbin.xyz CI
This commit is contained in:
@@ -96,7 +96,19 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Publish template
|
||||
env:
|
||||
SOS_WRITE_TOKEN: ${{ secrets.SOS_WRITE_TOKEN }}
|
||||
run: |
|
||||
if [ "$GITHUB_REF" = "refs/heads/main" ]; then
|
||||
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} ~/.local/bin/dropshell publish --all ./
|
||||
~/.local/bin/dropshell publish --all ./
|
||||
fi
|
||||
|
||||
- name: Publish setup script to getbin.xyz
|
||||
env:
|
||||
SOS_WRITE_TOKEN: ${{ secrets.SOS_WRITE_TOKEN }}
|
||||
run: |
|
||||
if [ "$GITHUB_REF" = "refs/heads/main" ]; then
|
||||
curl -L -s -o /tmp/sos "https://getbin.xyz/sos:latest"
|
||||
chmod +x /tmp/sos
|
||||
/tmp/sos upload "getbin.xyz" "./setup-remote.sh" "infmap-setup:latest"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user