From c2c12f9ded8c75a4998dc06488e89ab9189caaa3 Mon Sep 17 00:00:00 2001 From: Tyr Chen Date: Sun, 26 Nov 2023 22:16:00 -0800 Subject: [PATCH] fix GITHUB_TOKEN permission --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cbeaa56..bbfda94 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,9 @@ on: branches: - master +permissions: + contents: write + jobs: build: runs-on: ubuntu-latest @@ -36,12 +39,15 @@ jobs: - name: make sure smithy build works run: | cd $GITHUB_WORKSPACE && smithy build + - name: list .m2 directory + run: | + ls -la .m2 - name: compress .m2 directory run: | - cd ${{ runner.home }} && tar -czf assets.tar.gz .m2 + tar -czf assets.tar.gz .m2 - name: Release with assets uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: | - ${{ runner.home }}/assets.tar.gz + assets.tar.gz