Skip to content

Commit

Permalink
Publish: Connect workflow to tailnet using OAuth client
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jan 10, 2025
1 parent dc20218 commit 9911a6c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# GHA workflow recipe to upload repository content using WebDAV when changed.
# In this setup, the workflow will connect to a tailnet first.
# https://github.com/tailscale/github-action
---
name: Publish content

Expand All @@ -23,6 +26,16 @@ jobs:
name: Upload content to web server
steps:

- name: Connect using Tailscale
uses: tailscale/github-action@v3
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci

- name: Probe network connectivity
run: ping -c2 web &

- name: Acquire sources
uses: actions/checkout@v4

Expand All @@ -36,7 +49,7 @@ jobs:
[datasets-webdav]
type = webdav
url = https://cdn.crate.io/downloads/datasets
url = http://web/downloads/datasets
vendor = other
EOF
Expand Down

0 comments on commit 9911a6c

Please sign in to comment.