Skip to content

Commit

Permalink
Publish automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Nov 20, 2023
1 parent 30a7eca commit af0d34f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish-web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish web
on:
push:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
name: Publish web
environment: publish
steps:
- name: Push to Spaces
uses: docker://docker.io/rclone/rclone:latest
env:
RCLONE_CONFIG_SPACES_TYPE: s3
RCLONE_CONFIG_SPACES_PROVIDER: DigitalOcean
RCLONE_CONFIG_SPACES_ACCESS_KEY_ID: ${{ secrets.SPACES_KEY }}
RCLONE_CONFIG_SPACES_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET }}
RCLONE_CONFIG_SPACES_ENDPOINT: ams3.digitaloceanspaces.com
RCLONE_CONFIG_SPACES_ACL: public-read
with:
args: sync --exclude .git --exclude .gitignore --delete-excluded . spaces:syncthing/web

0 comments on commit af0d34f

Please sign in to comment.