diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 18df9be..51052fd 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -23,4 +23,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: InnkeeperBot - path: ./InnkeeperBot \ No newline at end of file + path: ./InnkeeperBot diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..4cfb08b --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,23 @@ +name: Release and publish +run-name: Release from ${{ gitea.actor }} 🚀 +on: + workflow_run: + workflows: ["Build artifact"] + #branches: [main] + types: + - completed + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v2 + with: + name: InnkeeperBot + - name: Use Go Action + id: use-go-action + uses: https://gitea.com/actions/release-action@main + with: + files: |- + InnkeeperBot + api_key: '${{secrets.RELEASE_TOKEN}}'