fix GITHUB_TOKEN permission

This commit is contained in:
Tyr Chen 2023-11-26 22:16:00 -08:00
parent a4b80a7429
commit c2c12f9ded
No known key found for this signature in database
GPG Key ID: FA69377479FE142A
1 changed files with 8 additions and 2 deletions

View File

@ -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