diff options
-rw-r--r-- | .github/workflows/main.yaml | 27 | ||||
-rw-r--r-- | continuedev/src/continuedev/libs/util/paths.py | 11 |
2 files changed, 16 insertions, 22 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index dc670137..5f2571ab 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -46,8 +46,8 @@ jobs: publish: needs: pyinstaller runs-on: ubuntu-latest - # permissions: - # contents: write + permissions: + contents: write steps: - name: Checkout @@ -107,18 +107,19 @@ jobs: run: | cd extension npm run package + vsce publish patch -p ${{ secrets.VSCE_TOKEN }} - # - name: Commit changes - # run: | - # git config --local user.email "action@github.com" - # git config --local user.name "GitHub Action" - # git commit -am "Update package.json version [skip ci]" - - # - name: Push changes - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: ${{ github.ref }} + - name: Commit changes + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -am "Update package.json version [skip ci]" + + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} - name: Upload .vsix artifact uses: actions/upload-artifact@v2 diff --git a/continuedev/src/continuedev/libs/util/paths.py b/continuedev/src/continuedev/libs/util/paths.py index a033d6dd..6385dc6f 100644 --- a/continuedev/src/continuedev/libs/util/paths.py +++ b/continuedev/src/continuedev/libs/util/paths.py @@ -4,15 +4,8 @@ from ..constants.main import CONTINUE_SESSIONS_FOLDER, CONTINUE_GLOBAL_FOLDER, C def find_data_file(filename): - if getattr(sys, 'frozen', False): - # The application is frozen - datadir = os.path.dirname(sys.executable) - else: - # The application is not frozen - # Change this bit to match where you store your data files: - datadir = os.path.dirname(__file__) - - return os.path.join(datadir, filename) + datadir = os.path.dirname(__file__) + return os.path.abspath(os.path.join(datadir, filename)) def getGlobalFolderPath(): |