Skip to content

sync-build

sync-build #32

Workflow file for this run

name: sync-build
on:
workflow_dispatch:
workflow_run:
workflows: ["go-build-release"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: downmload assets
run: |
mkdir releases
wget https://github.com/RiderLty/go-touch-mapper/releases/latest/download/go-touch-mapper_amd64 -O ./releases/go-touch-mapper_amd64
wget https://github.com/RiderLty/go-touch-mapper/releases/latest/download/go-touch-mapper_arm64 -O ./releases/go-touch-mapper_arm64
- name: upload
run: |
curl -T "./releases/go-touch-mapper_amd64" -u "${{ secrets.WEBDAV_USERNAME }}:${{ secrets.WEBDAV_PASSWORD }}" "${{ secrets.WEBDAV_ENDPOINT }}/direct/projects/go-touch-mapper/build/go-touch-mapper_amd64"
curl -T "./releases/go-touch-mapper_arm64" -u "${{ secrets.WEBDAV_USERNAME }}:${{ secrets.WEBDAV_PASSWORD }}" "${{ secrets.WEBDAV_ENDPOINT }}/direct/projects/go-touch-mapper/build/go-touch-mapper_arm64"
# - name: Upload to WebDAV
# uses: bxb100/action-upload@main
# with:
# provider: webdav
# provider_options: |
# endpoint=${{ secrets.WEBDAV_ENDPOINT }}
# username=${{ secrets.WEBDAV_USERNAME }}
# password=${{ secrets.WEBDAV_PASSWORD }}
# root=/direct/projects/go-touch-mapper/build
# include: 'releases/**'