diff --git a/.github/workflows/assets.yaml b/.github/workflows/assets.yaml index 8ba8bb4..417c2a0 100644 --- a/.github/workflows/assets.yaml +++ b/.github/workflows/assets.yaml @@ -3,21 +3,23 @@ on: release: types: - created +env: + name: solarman jobs: build: runs-on: ubuntu-latest permissions: contents: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - name: Zip run: | - cd ${{ github.workspace }}/custom_components/solarman - zip -r solarman.zip . -x ".git/*" ".github/*" ".gitignore" ".gitmodules" + cd ${{ github.workspace }}/custom_components + zip -r $name.zip $name/* -x ".git/*" ".github/*" ".gitignore" ".gitmodules" - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: ${{ github.workspace }}/custom_components/solarman/solarman.zip + files: ${{ github.workspace }}/custom_components/${{ name }}.zip diff --git a/.github/workflows/butler.yaml b/.github/workflows/butler.yaml index 1cdc0d9..a07cb88 100644 --- a/.github/workflows/butler.yaml +++ b/.github/workflows/butler.yaml @@ -9,7 +9,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@v9 with: days-before-issue-stale: 30 days-before-issue-close: 14