diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 4ddaf2d..5ec985b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -35,8 +35,8 @@ jobs: RESPONSE=$(curl -X POST -H "Authorization: token ${{ secrets.PUBLISH_TOKEN }}" \ -H "Content-Type: application/json" \ -d '{ - "tag_name": "${{ gitea.ref }}", - "name": "Release ${{ gitea.repository }}", + "tag_name": "release", + "name": "Release live", "body": "This is an automated release", "draft": false, "prerelease": false diff --git a/.gitea/workflows/ci-build.yaml b/.gitea/workflows/ci-build.yaml deleted file mode 100644 index a0560e3..0000000 --- a/.gitea/workflows/ci-build.yaml +++ /dev/null @@ -1,53 +0,0 @@ -name: Docker Build and Release Upload - -on: - push: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v4 - - - name: build database - run: | - docker build -t mistox-sql ./database - - - name: build server - run: | - docker build --build-arg BASE_URL=https://mistox.com -t mistox-website . - - - name: create release folder - run: | - mkdir release - - - name: export database - run: docker save mistox-sql -o /mistox-sql.tar - - - name: export server - run: docker save mistox-website -o /mistox-website.tar - - - name: create release - run: | - RESPONSE=$(curl -X POST -H "Authorization: token ${{ secrets.PUBLISH_TOKEN }}" \ - -H "Content-Type: application/json" \ - -d '{ - "tag_name": "${{ gitea.ref }}", - "name": "Release ${{ gitea.repository }}", - "body": "This is an automated release", - "draft": false, - "prerelease": false - }' \ - https://git.mistox.net/api/v1/repos/derek/MistoxCom-Angular/releases) && \ - echo "$RESPONSE" | grep -o '"id":[ ]*[0-9]*' | head -n 1 | grep -o '[0-9]*' > /release_id.txt - - - name: publish database - run: | - RELEASE_ID=$(cat /release_id.txt) - curl -X POST -H "Authorization: token ${{ secrets.PUBLISH_TOKEN }}" \ - -F name="mistox-sql.tar" \ - -F attachment=@/mistox-sql.tar \ - https://git.mistox.net/api/v1/repos/derek/MistoxCom-Angular/releases/$RELEASE_ID/assets