diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml deleted file mode 100644 index 4c7bc78..0000000 --- a/.github/workflows/build-and-test.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: build-and-test -on: - pull_request: - push: - branches: - - main - - "releases/*" -jobs: - build-and-test: - strategy: - matrix: - os: [macos-latest, ubuntu-latest, windows-latest] - runs-on: ${{ matrix.os }} - steps: - - name: Git checkout - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.17 - - - run: go test ./... diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 31c623d..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,35 +0,0 @@ -name: release -on: - push: - branches: - - "main" - tags: - - "v*" -permissions: - contents: write -jobs: - test: - name: Build and release - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v3 - with: - submodules: "true" - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v4 - with: - images: kcllang/kcl-playground - - name: Build and push Docker image - uses: docker/build-push-action@v3 - with: - context: . - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }}