diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index a254a53..353a5dc 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -8,6 +8,11 @@ on: jobs: build: runs-on: ubuntu-latest + env: + GITEA_URL: https://10.1.1.1:8086 + GITEA_OWNER: derek + GITEA_REPO: ${{ gitea.repository }} + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} steps: - name: checkout uses: actions/checkout@v4 @@ -30,8 +35,59 @@ jobs: - name: export server run: docker save mistox-website -o release/mistox-website.tar - - name: create release - uses: actions/upload-artifact@v3 - with: - name: test-release - path: ${{ gitea.workspace }}/release \ No newline at end of file + - name: Create Gitea release and upload assets (without jq) + id: gitea_release + run: | + TAG_NAME="v1.0.${GITHUB_RUN_NUMBER}" + RELEASE_TITLE="Release $TAG_NAME" + DESCRIPTION="Automated release from CI run $GITHUB_RUN_NUMBER" + + RELEASE_JSON=$(cat <