Skip to content

Commit

Permalink
[Actions] Maybe this will make the release action work
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Feb 5, 2022
1 parent 61e7455 commit 587f1a6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ jobs:
THEOS: theos
run: |
gmake package FINALPACKAGE=1
echo "::set-output name=package::$(ls -t packages | head -n1)"
echo "::set-output name=package::$(basename $(cat .theos/last_package))"
- name: Attach package to release
env:
GITHUB_TOKEN: ${{ github.token }}
working-directory: packages
run: gh release upload '${{ github.event.release.tag_name }}' '${{ steps.package_build.outputs.package }}'

- name: Clone Safari
run: git clone https://zbrabot:${{ secrets.BOT_TOKEN }}@github.com/zbrateam/Safari.git ~/website
Expand All @@ -44,16 +50,10 @@ jobs:
run: cp -f -- '${{ steps.package_build.outputs.package }}' ~/website/beta/pool

- name: Push Safari
working-directory: ~/website
run: |
cd ~/website
git config --global user.name 'zbrabot'
git config --global user.email '[email protected]'
git add .
git commit -m '${{ github.event.release.tag_name }}'
git push
- name: Attach package to release
env:
GITHUB_TOKEN: ${{ github.token }}
working-directory: packages
run: gh release upload '${{ github.event.release.tag_name }}' '${{ steps.package_build.outputs.package }}'

0 comments on commit 587f1a6

Please sign in to comment.