name: Gitea Actions Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: [push] jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - name: Set temp dir run: mkdir /tmp/git-temp && export GIT_TEMP_DIR=/tmp/git-temp - name: Clone repo run: git clone https://gitea.tecamino.com/${{ gitea.repository }} - name: Check out repository code uses: actions/checkout@v4 with: token: ${{ secrets.GT_TOKEN }} - name: Set up Go uses: actions/setup-go@v4 with: go-version: 'latest' - name: Build Go project run: | go version go build -v -o app . - name: show golang run: ls -a - name: Upload binary as artifact uses: actions/upload-artifact@v4 with: name: go-binary path: app