diff --git a/.gitea/workflows/tag_release.yaml b/.gitea/workflows/tag_release.yaml deleted file mode 100644 index 6114199..0000000 --- a/.gitea/workflows/tag_release.yaml +++ /dev/null @@ -1,46 +0,0 @@ -name: Go Release - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - build-and-release: - runs-on: ubuntu-24.04 - steps: - - name: Checkout code - uses: actions/checkout@v5 - - - name: Set up Go - uses: actions/setup-go@v6 - with: - go-version: '1.26.2' - - - name: Create version - id: version - run: | - echo "Creating version" - - VERSION="0.2.1" - PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10) - BRANCH_REF="${{ gitea.ref }}" - BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3) - PROJECT_TAG_RELEASE="v$VERSION-$BRANCH_NAME-$PROJECT_COMMIT_HASH-556" - - echo "::set-output name=project_tag_release::$PROJECT_TAG_RELEASE" - - echo "Version: $VERSION" - echo "Hash: $PROJECT_COMMIT_HASH" - echo "Branh ref: $BRANCH_REF" - echo "Branch: $BRANCH_NAME" - echo "Tag Release: $PROJECT_TAG_RELEASE" - - - name: Print version - id: Version - run: | - echo "Printing version" - echo "Version: ${{ steps.version.outputs.project_tag_release }}" diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml deleted file mode 100644 index f399161..0000000 --- a/.gitea/workflows/workflow.yaml +++ /dev/null @@ -1,36 +0,0 @@ -name: Go CI - -on: [push, pull_request] # Triggers on push or pull request events - -jobs: - test: - name: Test - runs-on: ubuntu-24.04 - steps: - - name: Check out repository code - uses: actions/checkout@v5 - - - name: Set up Go - uses: actions/setup-go@v6 - with: - go-version: '1.26.2' - - name: Configure Git for SSH - run: | - git config --global url."git@${{ secrets.GIT_HOST_ROOT }}:".insteadOf "https://${{ secrets.GIT_HOST_ROOT }}/" - go env -w GOPRIVATE=${{ secrets.GIT_HOST_ROOT }}/phoenix/* - - - name: Download dependencies - run: | - echo "Initializing config" - mkdir -p ~/.ssh - echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/swoosh_deploy_key - chmod 600 ~/.ssh/swoosh_deploy_key - ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts - - eval $(ssh-agent -s) - ssh-add -v ~/.ssh/swoosh_deploy_key - - go mod download - - - name: Run tests - run: go test -v ./... # Runs all tests in the project