Skip to content

Commit

Permalink
chore: Stop fighting against circle ci
Browse files Browse the repository at this point in the history
It does not deal correctly with environment variables.
  • Loading branch information
Konubinix committed Feb 7, 2025
1 parent 10e1e78 commit 0250e98
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 63 deletions.
63 changes: 0 additions & 63 deletions .circleci/config.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: [ main ]
tags: ["v*"]
pull_request:
branches: [ main ]

# this concurrency settings means that there will be only one job at a time,
concurrency:
group: ${{ github.ref_name }}

jobs:
test:
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v2
- name: Download latest earthly
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.15/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
- name: Test
run: earthly --secret SONAR_TOKEN="${SONAR_TOKEN}" --ci +sanity-check
deploy:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v2
- name: Download latest earthly
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.15/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
- name: Test
run: earthly --secret SONAR_TOKEN="${{ secrets.SONAR_TOKEN }}" --secret pypi_username="__token__" --secret pypi_password="${{ secrets.PYPI_TOKEN }}" --ci --push +deploy

0 comments on commit 0250e98

Please sign in to comment.