name: Wireguard MFA Windows Agent build run-name: ${{ gitea.actor }} is building a release on: push: tags: - "v[0-9]+.[0-9]+.[0-9]+" - "build-[0-9]+" jobs: release: runs-on: go-1.22 steps: - name: Check out repository code uses: actions/checkout@v4 with: ssh-known-hosts: "[git.gibonuddevalla.se]:2222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII2Od6HUfExymVv/wPJcWiA8mgsuMwEmF7UO+YjqnjWy" ssh-strict: "false" ssh-key: '${{secrets.CICD_SSH_KEY}}' - name: Compile go binaries env: GOOS: 'windows' run: go build -v # - name: Create release # id: use-go-action # uses: https://gitea.com/actions/release-action@main # with: # files: |- # wireguard-mfa.exe # api_key: '${{secrets.CICD_API_TOKEN}}' - name: Distribute file on web run: echo '${{secrets.CICD_SSH_KEY}}' | scp -i /dev/stdin wireguard-mfa.exe filehosting:/var/www/git.gibonuddevalla.se/cicd/