From 47ee7a460c0ef28b1b69788018371f46a429acf6 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 20 Nov 2023 11:24:33 +0100 Subject: [PATCH] Publish automatically --- .github/workflows/publish-web.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish-web.yaml diff --git a/.github/workflows/publish-web.yaml b/.github/workflows/publish-web.yaml new file mode 100644 index 0000000..915a40c --- /dev/null +++ b/.github/workflows/publish-web.yaml @@ -0,0 +1,22 @@ +name: Publish web +on: + push: + workflow_dispatch: +jobs: + publish: + runs-on: ubuntu-latest + name: Publish web + environment: publish + steps: + - uses: actions/checkout@v4 + - 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 --exclude .github --delete-excluded . spaces:syncthing/web