が、とにかく

but anyway

→ が
phrase Rare #33,180
but anyway が marks a contrast, and とにかく means “anyway” or “in any case.”
JA: 少し疲れているが、とにかく最後までやります。
EN: I'm a little tired, but I'll finish it anyway.

次のバスには遅れるだろうが、とにかく真夜中前には着くよ。

We’ll probably miss the next bus, but we’ll get there before midnight anyway.

食べ物は良くなかったが、とにかく値段は安かった。

The food wasn't good, but at least it was cheap.

彼は金持ちではないが、とにかく幸福である。

He isn't rich, but he's happy all the same.

雨が降るかもしれないが、とにかく私は今日行きます。

It might rain, but I’m going anyway today.

彼は年をとっているが、とにかくよく働く。

Although he is old, he works very hard anyway.