All of these actions, whatever you do, will give you liberation and will give you enjoyment of the world. Swami Lakshmanjoo will elaborate on this question in this excerpt from the Bhagavad Gita, In the Light of Kashmir Shaivism.
DVD 3.1 (26:07)
सहयज्ञाः प्रजाः सृष्ट्वा पुरोवाच प्रजापतिः ।
अनेन प्रसविष्यध्वमेष वोऽस्त्विष्टकामधुक् ॥१०॥
sahayajñāḥ prajāḥ sṛṣṭvā purovāca prajāpatiḥ /
anena prasaviṣyadhvameṣa vo‘stviṣṭakāmadhuk //10//
Prajāpati means Brahmā. It is translated by all commentators of the Bhagavad Gītā [that] Prajāpati means Brahmā. They commentated upon Prajāpati as Brahmā, who is the creator of this whole universe–not protector, nor destroyer, nor concealer, nor revealer.
JONATHAN: Just creator.
But he has translated this, Abhinavagupta has translated Prajāpati [to] mean paramātma, Parabhairava. Prajāpati means paramātma, Parabhairava.
Prajāḥ sahaiva karmabhiḥ sasarja [comm.]. He created this whole universe, right from pṛthvī (earth) to śāntātīta kalā.64 He created this whole universe–this is prajāḥ. Sahaiva karmabhiḥ sasarja, He created [this universe] with actions. Lord Śiva created all of this stuff [out] of His glamour, His outside glamour. This is His glamour, outside glamour . . .
What is outside glamour?
DENISE: His creation.
SWAMIJI: His creation, whatever He has created. It is His outside glamour, stuff. He created this stuff with actions. Only He made this discrimination with actions, uktaṁ ca tena, and then while creating this stuff, He told them, He instructed [the people whom He created]:
prajānāṁ karmabhya eva prasavaḥ santānaḥ, etānyeva ceṣṭaṁ saṁsāraṁ mokṣaṁ vā dāsyanti / [comm.]
All of these actions, whatever you do, will give you liberation and will give you enjoyment of the world.
Enjoyment of the world they will give you when you have attachment for whatever you do. And whatever you do, [if] you have no attachment, then [your actions] will liberate you and fix [i.e., establish] you in My nature, in the Parabhairava state. You will become Parabhairava then.
Do you understand?
JOHN: If you do action with attachment, then you get joy. If you do actions without attachment to its fruits, then you get the enlightened state.
64 “The fifth and last enclosure [of creation] is known as śāntātīta kalā. Here you will only find the existence of Śiva tattva.” Kashmir Shaivism–The Secret Supreme 2.12.