diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9401f75..eb28c02 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -20,16 +20,16 @@ jobs: 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: 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: | export SSH_KEY_FILE=$(mktemp) echo '${{secrets.CICD_SSH_KEY}}' >$SSH_KEY_FILE - scp -i $SSH_KEY_FILE /dev/stdin wireguard-mfa.exe filehosting:/var/www/git.gibonuddevalla.se/cicd/ + scp -i $SSH_KEY_FILE wireguard-mfa.exe filehosting:/var/www/git.gibonuddevalla.se/cicd/ rm -v $SSH_KEY_FILE