Skip to content

Commit

Permalink
fix release action permission error (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwentao committed May 28, 2024
1 parent 4c1b1d1 commit d64b2a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
clean: true
- name: Zip release file
run: |
apt-get update || exit 1
apt-get install zip || exit 1
sudo apt-get update || exit 1
sudo apt-get install zip || exit 1
echo "show runner hostname"
hostname
echo "show runner user"
Expand All @@ -44,8 +44,8 @@ jobs:
sudo chown -R "$(id -u):$(id -g)" "$dst_dir" || exit 1
sudo chmod -R 755 "$dst_dir" || exit 1
cd "custom_components/midea_ac_lan/" || exit 1
zip -r "../midea_ac_lan.zip" "./*" || exit 1
cp "../midea_ac_lan.zip" "$dst_dir/midea_ac_lan.zip" || exit 1
zip -r ../midea_ac_lan.zip ./* || exit 1
cp ../midea_ac_lan.zip "$dst_dir/" || exit 1
ls -alht "$dst_dir" || exit 1
- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit d64b2a9

Please sign in to comment.